yangqiaosheng / angleproject

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

Implement missing variants of built-in functions abs and sign #923

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Implement missing variants of built-in functions abs and sign

Missing variants that are introduced in GLES3:
genIType sign (genIType x)
genIType abs (genIType x)

related dEQP tests:
dEQP-GLES3.functional.shaders.builtin_functions.common.abs
dEQP-GLES3.functional.shaders.builtin_functions.common.sign

Are HLSL intrinsics available for missing variants?
Yes.
https://msdn.microsoft.com/en-us/library/windows/desktop/bb509562(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/windows/desktop/bb509649(v=vs.85).aspx

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

GoogleCodeExporter commented 9 years ago
Uploaded patch: https://chromium-review.googlesource.com/#/c/251060/

Original comment by apat...@nvidia.com on 19 Feb 2015 at 4:51