blob: 5939353a5a7c4a805f26fd398f1cd08736dec78c [file] [log] [blame]
#version 310 es
struct S {
ivec4 a;
};
layout(binding = 0, std430)
buffer v_block_1_ssbo {
S inner;
} v_1;
ivec4 tint_div_v4i32(ivec4 lhs, ivec4 rhs) {
bvec4 v_2 = equal(rhs, ivec4(0));
bvec4 v_3 = equal(lhs, ivec4((-2147483647 - 1)));
bvec4 v_4 = equal(rhs, ivec4(-1));
uvec4 v_5 = uvec4(v_3);
bvec4 v_6 = bvec4((v_5 & uvec4(v_4)));
uvec4 v_7 = uvec4(v_2);
return (lhs / mix(rhs, ivec4(1), bvec4((v_7 | uvec4(v_6)))));
}
void foo() {
v_1.inner.a = tint_div_v4i32(v_1.inner.a, ivec4(2));
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
}