Implement ConstantColor G80

This commit is contained in:
Lordmau5 2018-06-11 01:48:33 +02:00
parent 518fe799da
commit 02b7e2c73d
2 changed files with 5 additions and 2 deletions

View file

@ -20,6 +20,7 @@ namespace Ryujinx.Graphics.Gal
ConstantColor = 0x61, ConstantColor = 0x61,
OneMinusConstantColor = 0x62, OneMinusConstantColor = 0x62,
ConstantAlpha = 0x63, ConstantAlpha = 0x63,
OneMinusConstantAlpha = 0x64 OneMinusConstantAlpha = 0x64,
ConstantColorG80 = 0xc001
} }
} }

View file

@ -184,6 +184,7 @@ namespace Ryujinx.Graphics.Gal.OpenGL
case GalBlendFactor.OneMinusSrc1Color: return BlendingFactorSrc.OneMinusSrc1Color; case GalBlendFactor.OneMinusSrc1Color: return BlendingFactorSrc.OneMinusSrc1Color;
case GalBlendFactor.Src1Alpha: return BlendingFactorSrc.Src1Alpha; case GalBlendFactor.Src1Alpha: return BlendingFactorSrc.Src1Alpha;
case GalBlendFactor.OneMinusSrc1Alpha: return BlendingFactorSrc.OneMinusSrc1Alpha; case GalBlendFactor.OneMinusSrc1Alpha: return BlendingFactorSrc.OneMinusSrc1Alpha;
case GalBlendFactor.ConstantColorG80: return BlendingFactorSrc.ConstantColor;
} }
throw new ArgumentException(nameof(BlendFactor)); throw new ArgumentException(nameof(BlendFactor));
@ -212,6 +213,7 @@ namespace Ryujinx.Graphics.Gal.OpenGL
case GalBlendFactor.OneMinusSrc1Color: return BlendingFactorDest.OneMinusSrc1Color; case GalBlendFactor.OneMinusSrc1Color: return BlendingFactorDest.OneMinusSrc1Color;
case GalBlendFactor.Src1Alpha: return BlendingFactorDest.Src1Alpha; case GalBlendFactor.Src1Alpha: return BlendingFactorDest.Src1Alpha;
case GalBlendFactor.OneMinusSrc1Alpha: return BlendingFactorDest.OneMinusSrc1Alpha; case GalBlendFactor.OneMinusSrc1Alpha: return BlendingFactorDest.OneMinusSrc1Alpha;
case GalBlendFactor.ConstantColorG80: return BlendingFactorDest.ConstantColor;
} }
throw new ArgumentException(nameof(BlendFactor)); throw new ArgumentException(nameof(BlendFactor));