blob: c7eda27205353c0d5f9691ea58b7cd702ad259ca [file] [log] [blame]
### Compilation failed:
error: Tint compilation failed.
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> {
{
var inputVal: vec4<f32> = vec4<f32>(_globalUniforms.testMatrix2x2[0], _globalUniforms.testMatrix2x2[1]) * vec4<f32>(1.0, 1.0, -1.0, -1.0);
const expectedB: vec4<u32> = vec4<u32>(1065353216u, 1073741824u, 3225419776u, 3229614080u);
let _skTemp0 = floatBitsToUint(inputVal.x);
let _skTemp1 = floatBitsToUint(inputVal.xy);
let _skTemp2 = floatBitsToUint(inputVal.xyz);
let _skTemp3 = floatBitsToUint(inputVal);
return select(_globalUniforms.colorRed, _globalUniforms.colorGreen, vec4<bool>((((_skTemp0 == 1065353216u) && all(_skTemp1 == vec2<u32>(1065353216u, 1073741824u))) && all(_skTemp2 == vec3<u32>(1065353216u, 1073741824u, 3225419776u))) && all(_skTemp3 == expectedB)));
}
}
@fragment fn main() -> FSOut {
var _stageOut: FSOut;
_stageOut.sk_FragColor = _skslMain(/*fragcoord*/ vec2<f32>());
return _stageOut;
}
1 error