1
0
forked from MeloNX/MeloNX

Support flat interpolation qualifier on shaders (#915)

This commit is contained in:
gdkchan 2020-02-01 20:18:58 -03:00 committed by GitHub
parent 2fb5ad89b7
commit 28db1d27bd

View File

@ -100,7 +100,8 @@ namespace Ryujinx.Graphics.Shader.Instructions
switch (op.Mode) 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); Operand srcA = Attribute(op.AttributeOffset, iq);