blob: eb1efc31c0f92cd09e2946e2a320101ce280c593 [file] [log] [blame]
diagnostic(off, derivative_uniformity);
diagnostic(off, chromium.unreachable_code);
struct FSIn {
@location(0) defaultVarying: f32,
@location(1) @interpolate(linear) linearVarying: f32,
@location(2) @interpolate(flat, either) flatVarying: f32,
};
struct FSOut {
@location(0) sk_FragColor: vec4<f32>,
};
fn _skslMain(_stageIn: FSIn, _stageOut: ptr<function, FSOut>) {
{
(*_stageOut).sk_FragColor = vec4<f32>(f32(_stageIn.defaultVarying), f32(_stageIn.linearVarying), f32(_stageIn.flatVarying), 1.0);
}
}
@fragment fn main(_stageIn: FSIn) -> FSOut {
var _stageOut: FSOut;
_skslMain(_stageIn, &_stageOut);
return _stageOut;
}