Fix XMAD shader instruction, gl_FrontFacing and enable face culling (#583)
* Fix XMAD shader instruction implementation * Fix gl_FrontFacing constant value * Enable face culling again * Fix typo
This commit is contained in:
parent
b126ea48c6
commit
9cbcbaa90c
4 changed files with 125 additions and 65 deletions
|
@ -138,6 +138,11 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
return new ShaderIrOperImmf(BitConverter.Int32BitsToSingle((int)(OpCode >> 20)));
|
||||
}
|
||||
|
||||
private static ShaderIrOperImm ImmU16_20(this long OpCode)
|
||||
{
|
||||
return new ShaderIrOperImm(OpCode.Read(20, 0xffff));
|
||||
}
|
||||
|
||||
private static ShaderIrOperImm Imm19_20(this long OpCode)
|
||||
{
|
||||
int Value = OpCode.Read(20, 0x7ffff);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue