blob: 75ad107f72d9c7d3502f3c15f6a79e10be8e258c [file] [log] [blame]
out vec4 sk_FragColor;
uniform float testInput;
uniform mat2 testMatrix2x2;
uniform vec4 colorGreen;
uniform vec4 colorRed;
vec4 main() {
vec4 inputVal = vec4(testMatrix2x2) * vec4(1.0, 1.0, -1.0, -1.0);
const ivec4 expectedB = ivec4(1065353216, 1073741824, -1069547520, -1065353216);
return ((floatBitsToInt(inputVal.x) == 1065353216 && floatBitsToInt(inputVal.xy) == ivec2(1065353216, 1073741824)) && floatBitsToInt(inputVal.xyz) == ivec3(1065353216, 1073741824, -1069547520)) && floatBitsToInt(inputVal) == expectedB ? colorGreen : colorRed;
}