2021-11-16 15:15:36 +00:00
|
|
|
#version 310 es
|
|
|
|
|
2022-06-24 17:01:59 +00:00
|
|
|
shared int zero[3];
|
2022-01-28 22:36:58 +00:00
|
|
|
void tint_symbol(uint local_invocation_index) {
|
2021-11-16 15:15:36 +00:00
|
|
|
{
|
|
|
|
for(uint idx = local_invocation_index; (idx < 3u); idx = (idx + 1u)) {
|
|
|
|
uint i = idx;
|
2022-06-24 17:01:59 +00:00
|
|
|
zero[i] = 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[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
|
|
|
}
|