diff options
author | gdkchan <gab.dark.100@gmail.com> | 2018-11-17 02:01:31 -0200 |
---|---|---|
committer | Ac_K <Acoustik666@gmail.com> | 2018-11-17 05:01:31 +0100 |
commit | d2bb458b51bbcbc097f8f53ac2a3b8b15a723a45 (patch) | |
tree | 943f74d8edaf99c538eeaeeee01d8c5c55e5eec8 /Ryujinx.Graphics/GpuMethodCall.cs | |
parent | b833183ef640934e82106cb91f7ced65d81e3b07 (diff) |
Improved GPU command lists decoding (#499)
* Better implementation of the DMA pusher, misc fixes
* Remove some debug code
* Correct RGBX8 format
* Add support for linked Texture Sampler Control
* Attempt to fix upside down screen issue
Diffstat (limited to 'Ryujinx.Graphics/GpuMethodCall.cs')
-rw-r--r-- | Ryujinx.Graphics/GpuMethodCall.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/GpuMethodCall.cs b/Ryujinx.Graphics/GpuMethodCall.cs new file mode 100644 index 00000000..762d10f1 --- /dev/null +++ b/Ryujinx.Graphics/GpuMethodCall.cs @@ -0,0 +1,24 @@ +namespace Ryujinx.Graphics +{ + struct GpuMethodCall + { + public int Method { get; private set; } + public int Argument { get; private set; } + public int SubChannel { get; private set; } + public int MethodCount { get; private set; } + + public bool IsLastCall => MethodCount <= 1; + + public GpuMethodCall( + int Method, + int Argument, + int SubChannel = 0, + int MethodCount = 0) + { + this.Method = Method; + this.Argument = Argument; + this.SubChannel = SubChannel; + this.MethodCount = MethodCount; + } + } +}
\ No newline at end of file |