Skip to content

Commit 1afb7eb

Browse files
petermcneeleychromiumPeter McNeeley
andauthored
Expand valid input for smoothstep to include low > high (#4084)
Co-authored-by: Peter McNeeley <[email protected]>
1 parent a7274c9 commit 1afb7eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webgpu/shader/execution/expression/call/builtin/smoothstep.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const g = makeTestGroup(GPUTest);
2828
function validForConst(c: Case): boolean {
2929
const low = (c.input as Value[])[0] as ScalarValue;
3030
const high = (c.input as Value[])[1] as ScalarValue;
31-
return low.value < high.value;
31+
return low.value !== high.value;
3232
}
3333

3434
g.test('abstract_float')

0 commit comments

Comments
 (0)