dawn-cmake/test/tint/builtins/gen/var/sqrt/8da177.wgsl.expected.wgsl

21 lines
287 B
WebGPU Shading Language
Raw Normal View History

fn sqrt_8da177() {
const arg_0 = 1.0;
var res = sqrt(arg_0);
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
sqrt_8da177();
return vec4<f32>();
}
@fragment
fn fragment_main() {
sqrt_8da177();
}
@compute @workgroup_size(1)
fn compute_main() {
sqrt_8da177();
}