blob: 2da7d20a05d1935b57721e531f2e2028a92c4afe [file] [log] [blame]
diagnostic(off, derivative_uniformity);
diagnostic(off, chromium.unreachable_code);
struct FSOut {
@location(0) sk_FragColor: vec4<f32>,
};
struct _GlobalUniforms {
colorGreen: vec4<f32>,
colorRed: vec4<f32>,
testInputs: vec4<f32>,
};
@binding(0) @group(0) var<uniform> _globalUniforms: _GlobalUniforms;
fn _skslMain(coords: vec2<f32>) -> vec4<f32> {
{
let _skTemp0 = pack2x16float(_globalUniforms.testInputs.xy);
var xy: u32 = _skTemp0;
let _skTemp1 = pack2x16float(_globalUniforms.testInputs.zw);
var zw: u32 = _skTemp1;
let _skTemp2 = unpack2x16float(xy);
let _skTemp3 = unpack2x16float(zw);
return select(_globalUniforms.colorRed, _globalUniforms.colorGreen, vec4<bool>(all(_skTemp2 == vec2<f32>(-1.25, 0.0)) && all(_skTemp3 == vec2<f32>(0.75, 2.25))));
}
}
@fragment fn main() -> FSOut {
var _stageOut: FSOut;
_stageOut.sk_FragColor = _skslMain(/*fragcoord*/ vec2<f32>());
return _stageOut;
}