2022-02-23 21:18:09 +00:00
|
|
|
#version 310 es
|
|
|
|
|
|
|
|
int tint_extract_bits(int v, uint offset, uint count) {
|
|
|
|
uint s = min(offset, 32u);
|
|
|
|
uint e = min(32u, (s + count));
|
|
|
|
return bitfieldExtract(v, int(s), int((e - s)));
|
|
|
|
}
|
|
|
|
|
|
|
|
void f_1() {
|
|
|
|
int v = 0;
|
|
|
|
uint offset_1 = 0u;
|
|
|
|
uint count = 0u;
|
2022-09-19 14:05:21 +00:00
|
|
|
int x_16 = v;
|
|
|
|
uint x_17 = offset_1;
|
|
|
|
uint x_18 = count;
|
|
|
|
int x_14 = tint_extract_bits(x_16, x_17, x_18);
|
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;
|
|
|
|
}
|