blob: 5a2d99b3b5a99b5519f0d089c1c20ed7d55bff10 [file] [log] [blame]
diagnostic(off, derivative_uniformity);
diagnostic(off, chromium.unreachable_code);
struct FSOut {
@location(0) sk_FragColor: vec4<f32>,
};
struct _GlobalUniforms {
testMatrix2x2: mat2x2<f32>,
colorGreen: vec4<f32>,
colorRed: vec4<f32>,
};
@binding(0) @group(0) var<uniform> _globalUniforms: _GlobalUniforms;
fn _skslMain(coords: vec2<f32>) -> vec4<f32> {
{
let _skTemp0 = determinant(_globalUniforms.testMatrix2x2);
return select(_globalUniforms.colorRed, _globalUniforms.colorGreen, vec4<bool>(_skTemp0 == -2.0));
}
}
@fragment fn main() -> FSOut {
var _stageOut: FSOut;
_stageOut.sk_FragColor = _skslMain(/*fragcoord*/ vec2<f32>());
return _stageOut;
}