2022-03-31 22:30:10 +00:00
|
|
|
#version 310 es
|
2022-03-31 22:30:10 +00:00
|
|
|
|
2022-03-31 22:30:10 +00:00
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
void unused_entry_point() {
|
|
|
|
return;
|
2022-03-31 22:30:10 +00:00
|
|
|
}
|
2022-03-31 22:30:10 +00:00
|
|
|
struct S {
|
|
|
|
ivec4 a[4];
|
|
|
|
};
|
2022-03-31 22:30:10 +00:00
|
|
|
|
2022-03-31 22:30:10 +00:00
|
|
|
int counter = 0;
|
|
|
|
int foo() {
|
|
|
|
counter = (counter + 1);
|
2022-03-31 22:30:10 +00:00
|
|
|
return counter;
|
|
|
|
}
|
|
|
|
|
2022-03-31 22:30:10 +00:00
|
|
|
int bar() {
|
|
|
|
counter = (counter + 2);
|
2022-03-31 22:30:10 +00:00
|
|
|
return counter;
|
|
|
|
}
|
|
|
|
|
2022-03-31 22:30:10 +00:00
|
|
|
void tint_symbol() {
|
2022-07-14 20:46:39 +00:00
|
|
|
S x = S(ivec4[4](ivec4(0), ivec4(0), ivec4(0), ivec4(0)));
|
2022-03-31 22:30:10 +00:00
|
|
|
int tint_symbol_3 = foo();
|
|
|
|
int tint_symbol_1_save = tint_symbol_3;
|
|
|
|
int tint_symbol_2 = bar();
|
|
|
|
x.a[tint_symbol_1_save][tint_symbol_2] = (x.a[tint_symbol_1_save][tint_symbol_2] + 5);
|
2022-03-31 22:30:10 +00:00
|
|
|
}
|
|
|
|
|