KalebDark / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

Implement isinf/isnan #922

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Implement isinf/isnan

genBType isnan (genType x)
Returns true if x holds a NaN. Returns false otherwise.

genBType isinf (genType x)
Returns true if x holds a positive infinity or negative infinity. Returns false 
otherwise.

HLSL intrinsic functions for the same are there already, looks like we only 
need to provide the mapping.

Original issue reported on code.google.com by apat...@nvidia.com on 18 Feb 2015 at 4:13

GoogleCodeExporter commented 9 years ago
Related dEQP tests:
dEQP-GLES3.functional.shaders.builtin_functions.common.isnan.*
dEQP-GLES3.functional.shaders.constant_expressions.builtin_functions.common.isna
n.*
dEQP-GLES3.functional.shaders.builtin_functions.common.isinf.*
dEQP-GLES3.functional.shaders.constant_expressions.builtin_functions.common.isin
f_*

Original comment by apat...@nvidia.com on 18 Feb 2015 at 4:49

GoogleCodeExporter commented 9 years ago
Saw this was committed so marking fixed. Let me know if you need to reopen.

Original comment by jmad...@chromium.org on 18 Feb 2015 at 3:31