Support shader F32 to Bool reinterpretation (#1969)

This commit is contained in:
gdkchan
2021-01-27 09:19:30 +01:00
committed by GitHub
parent a8e9dd2f83
commit 98d0240ce6
@@ -37,6 +37,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
{
switch (dstType)
{
case VariableType.Bool: return $"(floatBitsToInt({expr}) != 0)";
case VariableType.S32: return $"floatBitsToInt({expr})";
case VariableType.U32: return $"floatBitsToUint({expr})";
}