Files
test2/source/blender/gpu/tests/shaders/gpu_compute_vbo_test.glsl

7 lines
134 B
GLSL

void main()
{
int index = int(gl_GlobalInvocationID.x);
vec4 pos = vec4(gl_GlobalInvocationID.x);
out_positions[index] = pos;
}