If low >= high,
it's a shader-creation error if both are const-expressions.
it's a pipeline-creation error if both are override-expressions (and not const-expressions).
Note that the other parameter can be a runtime-expression.
Example:
// This generates a shader-creation error.
fn foo(x:f32) -> f32 { return smoothstep(5,5, x); }
The current test checks for error when low == high.
Also, I suspect it doesn't check cases where the x parameter is a runtime value. I haven't read far enough into the helper function to be sure.
The spec has been updated https://github.com/gpuweb/gpuweb/pull/4616
If low >= high, it's a shader-creation error if both are const-expressions. it's a pipeline-creation error if both are override-expressions (and not const-expressions).
Note that the other parameter can be a runtime-expression.
Example:
// This generates a shader-creation error. fn foo(x:f32) -> f32 { return smoothstep(5,5, x); }