blob: 38f48b933a7f04df190f412927b1afdbc914ce44 [file] [log] [blame]
diagnostic(off, derivative_uniformity);
struct FSOut {
@location(0) sk_FragColor: vec4<f32>,
};
struct _GlobalUniforms {
src: vec4<f32>,
dst: vec4<f32>,
};
@binding(0) @group(0) var<uniform> _globalUniforms: _GlobalUniforms;
fn _skslMain(_stageOut: ptr<function, FSOut>) {
{
(*_stageOut).sk_FragColor = _globalUniforms.src + (1.0 - _globalUniforms.src) * _globalUniforms.dst;
}
}
@fragment fn main() -> FSOut {
var _stageOut: FSOut;
_skslMain(&_stageOut);
return _stageOut;
}