2021-11-16 15:15:36 +00:00
|
|
|
#version 310 es
|
|
|
|
|
2022-06-24 17:01:59 +00:00
|
|
|
shared int zero[2][3];
|
2022-01-28 22:36:58 +00:00
|
|
|
void tint_symbol(uint local_invocation_index) {
|
2021-11-16 15:15:36 +00:00
|
|
|
{
|
2022-06-24 17:01:59 +00:00
|
|
|
for(uint idx = local_invocation_index; (idx < 6u); idx = (idx + 1u)) {
|
|
|
|
uint i = (idx / 3u);
|
|
|
|
uint i_1 = (idx % 3u);
|
|
|
|
zero[i][i_1] = 0;
|
2021-11-16 15:15:36 +00:00
|
|
|
}
|
|
|
|
}
|
2022-02-05 00:15:34 +00:00
|
|
|
barrier();
|
2022-06-24 17:01:59 +00:00
|
|
|
int v[2][3] = zero;
|
2021-11-16 15:15:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
void main() {
|
2022-01-28 22:36:58 +00:00
|
|
|
tint_symbol(gl_LocalInvocationIndex);
|
|
|
|
return;
|
2021-11-16 15:15:36 +00:00
|
|
|
}
|