This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/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;
}