blob: ce001001eb0e1326c5c40c1a7f1f43a4a85431a6 [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> {
{
var expected: vec4<f32> = vec4<f32>(-1.5625, 0.0, 0.75, 3.375);
const exponents: vec4<f32> = vec4<f32>(2.0, 3.0, 1.0, 1.5);
let _skTemp0 = pow(_globalUniforms.testInputs.x, 2.0);
let _skTemp1 = pow(_globalUniforms.testInputs.xy, vec2<f32>(2.0, 3.0));
let _skTemp2 = pow(_globalUniforms.testInputs.xyz, vec3<f32>(2.0, 3.0, 1.0));
let _skTemp3 = pow(_globalUniforms.testInputs, exponents);
return select(_globalUniforms.colorRed, _globalUniforms.colorGreen, vec4<bool>((((((((_skTemp0 == expected.x) && all(_skTemp1 == expected.xy)) && all(_skTemp2 == expected.xyz)) && all(_skTemp3 == expected)) && (1.5625 == expected.x)) && all(vec2<f32>(1.5625, 0.0) == expected.xy)) && all(vec3<f32>(1.5625, 0.0, 0.75) == expected.xyz)) && all(vec4<f32>(1.5625, 0.0, 0.75, 3.375) == expected)));
}
}
@fragment fn main() -> FSOut {
var _stageOut: FSOut;
_stageOut.sk_FragColor = _skslMain(/*fragcoord*/ vec2<f32>());
return _stageOut;
}