struct FSIn { | |
@builtin(front_facing) sk_Clockwise: bool, | |
}; | |
struct FSOut { | |
@location(0) sk_FragColor: vec4<f32>, | |
}; | |
struct A { | |
x: i32, | |
y: i32, | |
}; | |
var<private> a1: A; | |
struct B { | |
x: f32, | |
y: array<f32, 2>, | |
z: A, | |
}; | |
var<private> b1: B; | |
fn main(_stageOut: ptr<function, FSOut>) { | |
a1.x = 0; | |
b1.x = 0.0; | |
(*_stageOut).sk_FragColor.x = f32(a1.x) + f32(b1.x); | |
} | |
@fragment fn fragmentMain(_stageIn: FSIn) -> FSOut { | |
var _stageOut: FSOut; | |
main(&_stageOut); | |
return _stageOut; | |
} |