Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
prism/shaders/histogram.comp.glsl
2020-09-22 16:09:25 -04:00

10 lines
236 B
GLSL
Executable file

layout(local_size_x = 16, local_size_y = 16) in;
layout(rgba32f, binding = 0) uniform image2D hdr_image;
shared uint histogram_shared[256];
void main() {
histogram_shared[gl_LocalInvocationIndex] = 1;
groupMemoryBarrier();
}