dawn-cmake/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl.expected.wgsl

23 lines
415 B
WebGPU Shading Language

fn pack2x16snorm_6c169b() {
var res : u32 = pack2x16snorm(vec2<f32>(1.0f));
prevent_dce = res;
}
@group(2) @binding(0) var<storage, read_write> prevent_dce : u32;
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
pack2x16snorm_6c169b();
return vec4<f32>();
}
@fragment
fn fragment_main() {
pack2x16snorm_6c169b();
}
@compute @workgroup_size(1)
fn compute_main() {
pack2x16snorm_6c169b();
}