dawn-cmake/test/tint/builtins/gen/literal/sign/3a39ac.wgsl.expected.wgsl

20 lines
262 B
WebGPU Shading Language
Raw Normal View History

fn sign_3a39ac() {
var res = sign(1);
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
sign_3a39ac();
return vec4<f32>();
}
@fragment
fn fragment_main() {
sign_3a39ac();
}
@compute @workgroup_size(1)
fn compute_main() {
sign_3a39ac();
}