blob: 758ebee4040b7d64767683fb75dcb8fa1ed0185f [file]
diagnostic(off, derivative_uniformity);
diagnostic(off, chromium.unreachable_code);
enable f16;
struct FSOut {
@location(0) sk_FragColor: vec4<f16>,
};
struct _GlobalUniforms {
colorGreen: vec4<f16>,
colorRed: vec4<f16>,
h: f16,
f: f32,
};
@group(0) @binding(0) var<uniform> _globalUniforms : _GlobalUniforms;
fn _skslMain() -> vec4<f16> {
{
var ok: bool = true;
ok = ok && all((mat2x2<f32>(2.0, 0.0, 0.0, 2.0) * vec2<f32>(_globalUniforms.f)) == vec2<f32>(2.0 * _globalUniforms.f));
ok = ok && all((mat4x4<f16>(2.0h, 0.0, 0.0, 0.0, 0.0, 2.0h, 0.0, 0.0, 0.0, 0.0, 2.0h, 0.0, 0.0, 0.0, 0.0, 2.0h) * vec4<f16>(_globalUniforms.h)) == vec4<f16>(2.0h * _globalUniforms.h));
return select(_globalUniforms.colorRed, _globalUniforms.colorGreen, vec4<bool>(ok));
}
}
@fragment fn main() -> FSOut {
var _stageOut: FSOut;
_stageOut.sk_FragColor = _skslMain();
return _stageOut;
}