From ca0bdd238f29f2fd17ae44eec913bd6c82e0c1fe Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Thu, 5 Jun 2025 10:08:22 -0700 Subject: Implement isnan and isinf for WGSL with bitwise operations (#7344) WGSL doesn't support isnan and isinf, because it assumes that it always uses fast-math and fast-math doesnt' handle NaN as defined in IEEE standard. The initial implementation used a clever workaround but it stopped working from some point. This PR implemented isnan and isinf with a bitwise operation, which can be expensive. But that seems to be an only option at the moment. --- tests/expected-failure-github.txt | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/expected-failure-github.txt') diff --git a/tests/expected-failure-github.txt b/tests/expected-failure-github.txt index 78ae5cf92..0489cafaf 100644 --- a/tests/expected-failure-github.txt +++ b/tests/expected-failure-github.txt @@ -14,4 +14,3 @@ tests/language-feature/shader-params/interface-shader-param-ordinary.slang.4 syn tests/glsl-intrinsic/shader-subgroup/shader-subgroup-builtin-variables.slang.8 (mtl) tests/glsl-intrinsic/shader-subgroup/shader-subgroup-builtin-variables-2.slang.3 (mtl) tests/compute/cbuffer-legalize.slang.2 syn (mtl) -tests/hlsl-intrinsic/classify-float.slang.5 syn (wgpu) -- cgit v1.2.3