mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-02 10:02:26 -07:00
Support shader F32 to Bool reinterpretation (#1969)
This commit is contained in:
@@ -37,6 +37,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
|
|||||||
{
|
{
|
||||||
switch (dstType)
|
switch (dstType)
|
||||||
{
|
{
|
||||||
|
case VariableType.Bool: return $"(floatBitsToInt({expr}) != 0)";
|
||||||
case VariableType.S32: return $"floatBitsToInt({expr})";
|
case VariableType.S32: return $"floatBitsToInt({expr})";
|
||||||
case VariableType.U32: return $"floatBitsToUint({expr})";
|
case VariableType.U32: return $"floatBitsToUint({expr})";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user