| #version 310 es | |
| int a = 0; | |
| vec4 b = vec4(0.0f); | |
| mat2 c = mat2(vec2(0.0f), vec2(0.0f)); | |
| int tint_div_i32(int lhs, int rhs) { | |
| uint v = uint((lhs == (-2147483647 - 1))); | |
| bool v_1 = bool((v & uint((rhs == -1)))); | |
| uint v_2 = uint((rhs == 0)); | |
| return (lhs / mix(rhs, 1, bool((v_2 | uint(v_1))))); | |
| } | |
| void foo() { | |
| a = tint_div_i32(a, 2); | |
| b = (b * mat4(vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f))); | |
| c = (c * 2.0f); | |
| } | |
| layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; | |
| void main() { | |
| } |