blob: 6bedfbd231e1993ae7a78292f7bf3d252b1b4f6d [file] [log] [blame]
diagnostic(off, derivative_uniformity);
diagnostic(off, chromium.unreachable_code);
struct FSOut {
@location(0) sk_FragColor: vec4<f32>,
};
struct _GlobalUniforms {
testInputs: vec4<f32>,
colorGreen: vec4<f32>,
colorRed: vec4<f32>,
};
@binding(0) @group(0) var<uniform> _globalUniforms: _GlobalUniforms;
fn _skslMain(coords: vec2<f32>) -> vec4<f32> {
{
const expected: vec4<f32> = vec4<f32>(-71.61973, 0.0, 42.9718361, 128.915512);
const allowedDelta: vec4<f32> = vec4<f32>(0.05);
let _skTemp0 = degrees(_globalUniforms.testInputs.x);
let _skTemp1 = abs(_skTemp0 - -71.61973);
let _skTemp2 = degrees(_globalUniforms.testInputs.xy);
let _skTemp3 = abs(_skTemp2 - vec2<f32>(-71.61973, 0.0));
let _skTemp4 = all((_skTemp3 < vec2<f32>(0.05)));
let _skTemp5 = degrees(_globalUniforms.testInputs.xyz);
let _skTemp6 = abs(_skTemp5 - vec3<f32>(-71.61973, 0.0, 42.9718361));
let _skTemp7 = all((_skTemp6 < vec3<f32>(0.05)));
let _skTemp8 = degrees(_globalUniforms.testInputs);
let _skTemp9 = abs(_skTemp8 - expected);
let _skTemp10 = all((_skTemp9 < allowedDelta));
return select(_globalUniforms.colorRed, _globalUniforms.colorGreen, vec4<bool>((((_skTemp1 < 0.05) && _skTemp4) && _skTemp7) && _skTemp10));
}
}
@fragment fn main() -> FSOut {
var _stageOut: FSOut;
_stageOut.sk_FragColor = _skslMain(/*fragcoord*/ vec2<f32>());
return _stageOut;
}