dawn-cmake/test/unittest/reader/spirv/SpvModuleScopeVarParserTest...

13 lines
210 B
WebGPU Shading Language

var<private> x_1 : array<i32, 1>;
fn main_1() {
let x_4 : i32 = x_1[0];
return;
}
[[stage(fragment)]]
fn main([[builtin(sample_mask)]] x_1_param : u32) {
x_1[0] = bitcast<i32>(x_1_param);
main_1();
}