From 1afb7eba336735fac1716d8f9debb3532eefc7ce Mon Sep 17 00:00:00 2001 From: petermcneeleychromium <96925679+petermcneeleychromium@users.noreply.github.com> Date: Tue, 10 Dec 2024 23:11:15 -0500 Subject: [PATCH] Expand valid input for smoothstep to include low > high (#4084) Co-authored-by: Peter McNeeley --- .../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')