Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / intrinsics / FloatBitsToInt.glsl
1
2 out vec4 sk_FragColor;
3 uniform float testInput;
4 uniform mat2 testMatrix2x2;
5 uniform vec4 colorGreen;
6 uniform vec4 colorRed;
7 vec4 main() {
8     vec4 inputVal = vec4(testMatrix2x2) * vec4(1.0, 1.0, -1.0, -1.0);
9     const ivec4 expectedB = ivec4(1065353216, 1073741824, -1069547520, -1065353216);
10     return ((floatBitsToInt(inputVal.x) == 1065353216 && floatBitsToInt(inputVal.xy) == ivec2(1065353216, 1073741824)) && floatBitsToInt(inputVal.xyz) == ivec3(1065353216, 1073741824, -1069547520)) && floatBitsToInt(inputVal) == expectedB ? colorGreen : colorRed;
11 }