mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-28 05:30:33 +00:00
9e5a19fd3a
The prior decomposition of isfinite was not setting the return type on the sequence node. (Sequence was used because there's an internal temporary to avoid the complex rvalue problem).
19 lines
219 B
GLSL
19 lines
219 B
GLSL
|
|
uniform float f;
|
|
uniform float2 f2;
|
|
uniform float3 f3;
|
|
|
|
bool test1(float v)
|
|
{
|
|
return !isnan(v) && isfinite(v);
|
|
}
|
|
|
|
float4 main() : SV_Target0
|
|
{
|
|
isfinite(f);
|
|
isfinite(f2);
|
|
isfinite(f3);
|
|
|
|
return 0;
|
|
}
|