Decompose OpIsFinite to avoid capability restrictions
OpIsFinite is not available everywhere: decompose isfinite to !isinf && !isnan.
This commit is contained in:
parent
b68b9a8b23
commit
13975525d7
4 changed files with 192 additions and 0 deletions
9
Test/hlsl.isfinite.frag
Normal file
9
Test/hlsl.isfinite.frag
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
uniform float f;
|
||||
|
||||
float4 main() : SV_Target0
|
||||
{
|
||||
isfinite(f);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue