mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-23 06:55:48 +00:00
Support shader F32 to Bool reinterpretation (#1969)
This commit is contained in:
parent
a8e9dd2f83
commit
98d0240ce6
1 changed files with 3 additions and 2 deletions
|
@ -37,8 +37,9 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
|
||||||
{
|
{
|
||||||
switch (dstType)
|
switch (dstType)
|
||||||
{
|
{
|
||||||
case VariableType.S32: return $"floatBitsToInt({expr})";
|
case VariableType.Bool: return $"(floatBitsToInt({expr}) != 0)";
|
||||||
case VariableType.U32: return $"floatBitsToUint({expr})";
|
case VariableType.S32: return $"floatBitsToInt({expr})";
|
||||||
|
case VariableType.U32: return $"floatBitsToUint({expr})";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (dstType == VariableType.F32)
|
else if (dstType == VariableType.F32)
|
||||||
|
|
Loading…
Reference in a new issue