HLSL: fix return type for isfinite
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).
This commit is contained in:
parent
ae79697db1
commit
9e5a19fd3a
3 changed files with 294 additions and 106 deletions
|
|
@ -1,9 +1,18 @@
|
|||
|
||||
uniform float f;
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue