blob: 771c564980964a59c7a60d46806728167f43df33 [file] [log] [blame]
diagnostic(off, derivative_uniformity);
struct FSOut {
@location(0) sk_FragColor: vec4<f32>,
};
struct _GlobalUniforms {
colorGreen: vec4<f32>,
colorRed: vec4<f32>,
};
@binding(0) @group(0) var<uniform> _globalUniforms: _GlobalUniforms;
fn _skslMain(coords: vec2<f32>) -> vec4<f32> {
{
var x: f32 = 0.5;
var y: f32 = x * 2.0;
return select(_globalUniforms.colorRed, _globalUniforms.colorGreen, vec4<bool>(y == 1.0));
}
}
@fragment fn main() -> FSOut {
var _stageOut: FSOut;
_stageOut.sk_FragColor = _skslMain(/*fragcoord*/ vec2<f32>());
return _stageOut;
}