dawn-cmake/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.wgsl
James Price 114bae24b0 [spirv-reader] Use builtin vector aliases
This makes the generated WGSL more concise and readable.

Change-Id: Ia486a74796a4029aaac1c4d051d304d05f1d5ea2
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/132140
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: James Price <jrprice@google.com>
2023-05-09 10:36:41 +00:00

16 lines
290 B
WebGPU Shading Language

fn f_1() {
var v : vec3u = vec3u();
var offset_1 : u32 = 0u;
var count : u32 = 0u;
let x_16 : vec3u = v;
let x_17 : u32 = offset_1;
let x_18 : u32 = count;
let x_14 : vec3u = extractBits(x_16, x_17, x_18);
return;
}
@compute @workgroup_size(1i, 1i, 1i)
fn f() {
f_1();
}