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

14 lines
240 B
WebGPU Shading Language

var<private> x_1 : i32;
fn main_1() {
let x_11 : ptr<private, i32> = &(x_1);
let x_2 : i32 = *(x_11);
return;
}
[[stage(fragment)]]
fn main([[builtin(sample_index)]] x_1_param : u32) {
x_1 = bitcast<i32>(x_1_param);
main_1();
}