Decompose OpIsFinite to avoid capability restrictions

OpIsFinite is not available everywhere: decompose isfinite
to !isinf && !isnan.
This commit is contained in:
steve-lunarg 2017-04-03 20:05:21 -06:00
parent b68b9a8b23
commit 13975525d7
4 changed files with 192 additions and 0 deletions

9
Test/hlsl.isfinite.frag Normal file
View file

@ -0,0 +1,9 @@
uniform float f;
float4 main() : SV_Target0
{
isfinite(f);
return 0;
}