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

20 lines
269 B
WebGPU Shading Language

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