blob: af813a3219d6a55ce5016b5dcfa50b514ae1764a [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>,
colorWhite: vec4<f32>,
};
@binding(0) @group(0) var<uniform> _globalUniforms: _GlobalUniforms;
fn _skslMain(coords: vec2<f32>) -> vec4<f32> {
{
var expectedA: vec4<f32> = vec4<f32>(0.75, 0.0, 0.75, 0.25);
var expectedB: vec4<f32> = vec4<f32>(0.25, 0.0, 0.75, 1.0);
let _skTemp0 = _globalUniforms.testInputs.x;
let _skTemp1 = _skTemp0 - 1.0 * floor(_skTemp0 / 1.0);
let _skTemp2 = _globalUniforms.testInputs.xy;
let _skTemp3 = _skTemp2 - 1.0 * floor(_skTemp2 / 1.0);
let _skTemp4 = _globalUniforms.testInputs.xyz;
let _skTemp5 = _skTemp4 - 1.0 * floor(_skTemp4 / 1.0);
let _skTemp6 = _globalUniforms.testInputs - 1.0 * floor(_globalUniforms.testInputs / 1.0);
let _skTemp7 = _globalUniforms.testInputs.x;
let _skTemp8 = _globalUniforms.colorWhite.x;
let _skTemp9 = _skTemp7 - _skTemp8 * floor(_skTemp7 / _skTemp8);
let _skTemp10 = _globalUniforms.testInputs.xy;
let _skTemp11 = _globalUniforms.colorWhite.xy;
let _skTemp12 = _skTemp10 - _skTemp11 * floor(_skTemp10 / _skTemp11);
let _skTemp13 = _globalUniforms.testInputs.xyz;
let _skTemp14 = _globalUniforms.colorWhite.xyz;
let _skTemp15 = _skTemp13 - _skTemp14 * floor(_skTemp13 / _skTemp14);
let _skTemp16 = _globalUniforms.testInputs - _globalUniforms.colorWhite * floor(_globalUniforms.testInputs / _globalUniforms.colorWhite);
return select(_globalUniforms.colorRed, _globalUniforms.colorGreen, vec4<bool>((((((((((((((((_skTemp1 == expectedA.x) && all(_skTemp3 == expectedA.xy)) && all(_skTemp5 == expectedA.xyz)) && all(_skTemp6 == expectedA)) && (0.75 == expectedA.x)) && all(vec2<f32>(0.75, 0.0) == expectedA.xy)) && all(vec3<f32>(0.75, 0.0, 0.75) == expectedA.xyz)) && all(vec4<f32>(0.75, 0.0, 0.75, 0.25) == expectedA)) && (_skTemp9 == expectedA.x)) && all(_skTemp12 == expectedA.xy)) && all(_skTemp15 == expectedA.xyz)) && all(_skTemp16 == expectedA)) && (0.25 == expectedB.x)) && all(vec2<f32>(0.25, 0.0) == expectedB.xy)) && all(vec3<f32>(0.25, 0.0, 0.75) == expectedB.xyz)) && all(vec4<f32>(0.25, 0.0, 0.75, 1.0) == expectedB)));
}
}
@fragment fn main() -> FSOut {
var _stageOut: FSOut;
_stageOut.sk_FragColor = _skslMain(/*fragcoord*/ vec2<f32>());
return _stageOut;
}