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

21 lines
285 B
WebGPU Shading Language

fn sign_3a39ac() {
const arg_0 = 1;
var res = sign(arg_0);
}
@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();
}