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

13 lines
181 B
WebGPU Shading Language

var<private> x_1 : u32;
fn main_1() {
let x_2 : u32 = x_1;
return;
}
[[stage(fragment)]]
fn main([[builtin(sample_index)]] x_1_param : u32) {
x_1 = x_1_param;
main_1();
}