dawn-cmake/test/tint/builtins/gen/literal/trunc/f0f1a1.wgsl.expected.wgsl

20 lines
275 B
WebGPU Shading Language
Raw Normal View History

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