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

18 lines
226 B
WebGPU Shading Language

var<private> x_1 : array<u32, 1>;
fn main_1() {
x_1[0] = 0u;
return;
}
struct main_out {
[[builtin(sample_mask)]]
x_1_1 : u32;
};
[[stage(fragment)]]
fn main() -> main_out {
main_1();
return main_out(x_1[0]);
}