blob: 22f7c004ad5137800893ebedf1ab1305e3ea09c2 [file] [log] [blame]
diagnostic(off, derivative_uniformity);
diagnostic(off, chromium.unreachable_code);
struct FSOut {
@location(0) sk_FragColor: vec4<f32>,
};
struct testBlockA {
x: vec2<f32>,
};
@group(0) @binding(1) var<uniform> _uniform0 : testBlockA;
struct testBlockB {
y: vec2<f32>,
};
@group(0) @binding(2) var<uniform> _uniform1 : testBlockB;
fn _skslMain(_stageOut: ptr<function, FSOut>) {
{
(*_stageOut).sk_FragColor = vec4<f32>(vec2<f32>(_uniform0.x), vec2<f32>(_uniform1.y));
}
}
@fragment fn main() -> FSOut {
var _stageOut: FSOut;
_skslMain(&_stageOut);
return _stageOut;
}