dawn-cmake/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.wgsl
Ben Clayton 06496d4d1a tint/reader/spirv: Generate 'i' suffixed literals
For all i32 literal values.

Reduces risk of the SPIR-V reader producing WGSL that behaves
differently, when abstract-integers are fully implemented.

Bug: tint:1504
Change-Id: Ieaf8afec5b09c7978c75a38c6ed144633ddc017e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/88843
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
2022-05-04 22:25:19 +00:00

16 lines
283 B
WebGPU Shading Language

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