Files
test/source/blender/gpu/tests/shaders/gpu_buffer_texture_test.glsl
Jeroen Bakker 004ce8fc4e Vulkan: Add Support For Texture Buffers
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
2023-05-30 13:54:51 +02:00

7 lines
139 B
GLSL

void main()
{
int index = int(gl_GlobalInvocationID.x);
float value = texelFetch(bufferTexture, index).r;
data_out[index] = value;
}