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

42 lines
537 B
WebGPU Shading Language

struct S {
field0 : u32;
field1 : f32;
field2 : array<u32, 2>;
};
var<private> x_1 : u32;
var<private> x_7 : bool;
var<private> x_8 : bool;
fn main_1() {
let x_101 : bool = x_7;
let x_102 : bool = x_8;
loop {
var x_2_phi : u32;
if (x_101) {
break;
}
x_2_phi = 0u;
if (x_102) {
x_2_phi = 1u;
continue;
} else {
continue;
}
return;
continuing {
let x_2 : u32 = x_2_phi;
x_1 = x_2;
}
}
return;
}
[[stage(fragment)]]
fn main() {
main_1();
}