From eac85ddc1fc7bb8c59ad86f8f5431f93a634d68f Mon Sep 17 00:00:00 2001 From: Peter McNeeley Date: Mon, 9 Dec 2024 16:20:34 -0500 Subject: [PATCH] Expand valid input for smoothstep to include low > high --- .../shader/execution/expression/call/builtin/smoothstep.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webgpu/shader/execution/expression/call/builtin/smoothstep.spec.ts b/src/webgpu/shader/execution/expression/call/builtin/smoothstep.spec.ts index f65bb951bf25..dbdc43d9f937 100644 --- a/src/webgpu/shader/execution/expression/call/builtin/smoothstep.spec.ts +++ b/src/webgpu/shader/execution/expression/call/builtin/smoothstep.spec.ts @@ -28,7 +28,7 @@ export const g = makeTestGroup(GPUTest); function validForConst(c: Case): boolean { const low = (c.input as Value[])[0] as ScalarValue; const high = (c.input as Value[])[1] as ScalarValue; - return low.value < high.value; + return low.value !== high.value; } g.test('abstract_float')