dawn-cmake/test/tint/builtins/gen/literal/length/c158da.wgsl.expected.wgsl

22 lines
294 B
WebGPU Shading Language

enable f16;
fn length_c158da() {
var res : f16 = length(1.0h);
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
length_c158da();
return vec4<f32>();
}
@fragment
fn fragment_main() {
length_c158da();
}
@compute @workgroup_size(1)
fn compute_main() {
length_c158da();
}