2022-02-23 21:18:09 +00:00
|
|
|
#version 310 es
|
|
|
|
|
|
|
|
ivec3 tint_insert_bits(ivec3 v, ivec3 n, uint offset, uint count) {
|
|
|
|
uint s = min(offset, 32u);
|
|
|
|
uint e = min(32u, (s + count));
|
|
|
|
return bitfieldInsert(v, n, int(s), int((e - s)));
|
|
|
|
}
|
|
|
|
|
|
|
|
void f_1() {
|
2022-06-01 01:11:59 +00:00
|
|
|
ivec3 v = ivec3(0);
|
|
|
|
ivec3 n = ivec3(0);
|
2022-02-23 21:18:09 +00:00
|
|
|
uint offset_1 = 0u;
|
|
|
|
uint count = 0u;
|
2022-09-19 14:05:21 +00:00
|
|
|
ivec3 x_18 = v;
|
|
|
|
ivec3 x_19 = n;
|
|
|
|
uint x_20 = offset_1;
|
|
|
|
uint x_21 = count;
|
|
|
|
ivec3 x_16 = tint_insert_bits(x_18, x_19, x_20, x_21);
|
2022-02-23 21:18:09 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
void f() {
|
|
|
|
f_1();
|
|
|
|
}
|
|
|
|
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
void main() {
|
|
|
|
f();
|
|
|
|
return;
|
|
|
|
}
|