Texture buffers are vbos that can be sampled as textures inside shaders. This adds support for them to the Vulkan Backend. Pull Request: https://projects.blender.org/blender/blender/pulls/108193
7 lines
139 B
GLSL
7 lines
139 B
GLSL
void main()
|
|
{
|
|
int index = int(gl_GlobalInvocationID.x);
|
|
float value = texelFetch(bufferTexture, index).r;
|
|
data_out[index] = value;
|
|
}
|