diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-04-10 16:50:32 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-04-10 16:50:32 -0300 |
| commit | feb2680a6ce1512c08980ee55c1c8215b8b5c3e4 (patch) | |
| tree | b41d2c8558ece834b2c1c5c9afba0afe226e0553 /Ryujinx.Graphics/Gal/Shader/ShaderDecoder.cs | |
| parent | e9cfdef0982824b673c60b362524408a263946df (diff) | |
[GPU] Add more shader instructions, add support for rgb565 textures
Diffstat (limited to 'Ryujinx.Graphics/Gal/Shader/ShaderDecoder.cs')
| -rw-r--r-- | Ryujinx.Graphics/Gal/Shader/ShaderDecoder.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Gal/Shader/ShaderDecoder.cs b/Ryujinx.Graphics/Gal/Shader/ShaderDecoder.cs index 779bbf92..7bebea62 100644 --- a/Ryujinx.Graphics/Gal/Shader/ShaderDecoder.cs +++ b/Ryujinx.Graphics/Gal/Shader/ShaderDecoder.cs @@ -8,6 +8,15 @@ namespace Ryujinx.Graphics.Gal.Shader while (Offset + 2 <= Code.Length) { + //Ignore scheduling instructions, which are + //written every 32 bytes. + if ((Offset & 7) == 0) + { + Offset += 2; + + continue; + } + uint Word0 = (uint)Code[Offset++]; uint Word1 = (uint)Code[Offset++]; |
