dawn-cmake/test/tint/builtins/gen/smoothstep/aad1db.wgsl.expected.wgsl
James Price e6c76095fc builtins: Add smoothstep, deprecate smoothStep
Bug: tint:1483
Change-Id: I8702933312a7e46f82745f232214910433485fe5
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/85261
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2022-03-30 17:57:39 +00:00

20 lines
361 B
WebGPU Shading Language

fn smoothstep_aad1db() {
var res : vec3<f32> = smoothstep(vec3<f32>(), vec3<f32>(), vec3<f32>());
}
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
smoothstep_aad1db();
return vec4<f32>();
}
@stage(fragment)
fn fragment_main() {
smoothstep_aad1db();
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
smoothstep_aad1db();
}