diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-02-01 20:18:58 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-02 10:18:58 +1100 |
| commit | a1a5341bafa82d4346cb4ee61f43dcd94d53a6de (patch) | |
| tree | 4f95f2f4642a72e7550f6ab63e5117730298514a | |
| parent | 7b0576db71e57e663e3c59ef80939fdb0b0c8be7 (diff) | |
Support flat interpolation qualifier on shaders (#915)
| -rw-r--r-- | Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs index 25bf2592..664c798b 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs @@ -100,7 +100,8 @@ namespace Ryujinx.Graphics.Shader.Instructions switch (op.Mode) { - case InterpolationMode.Pass: iq = InterpolationQualifier.NoPerspective; break; + case InterpolationMode.Constant: iq = InterpolationQualifier.Flat; break; + case InterpolationMode.Pass: iq = InterpolationQualifier.NoPerspective; break; } Operand srcA = Attribute(op.AttributeOffset, iq); |
