blob: 847a5272e1f403625c19cfa11e6b912a9dd7a086 [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) {
uvec4 v_2 = uvec4(equal(lhs, ivec4((-2147483647 - 1))));
bvec4 v_3 = bvec4((v_2 & uvec4(equal(rhs, ivec4(-1)))));
uvec4 v_4 = uvec4(equal(rhs, ivec4(0)));
return (lhs / mix(rhs, ivec4(1), bvec4((v_4 | uvec4(v_3)))));
}
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() {
}