false/true -> 0/-1

This commit is contained in:
merry 2022-03-08 13:41:08 +00:00
parent b6d9cc824e
commit 0741e247e3

View file

@ -97,8 +97,8 @@ namespace Ryujinx.Graphics.Shader.Instructions
{
return imm switch
{
TruthTable.False => Const(IrConsts.False),
TruthTable.True => Const(IrConsts.True),
TruthTable.False => Const(0),
TruthTable.True => Const(-1),
TruthTable.In => x,
TruthTable.And2 => context.BitwiseAnd(x, y),
TruthTable.Xor2 => context.BitwiseExclusiveOr(x, y),