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

11 lines
236 B
Text
Raw Normal View History

layout(local_size_x = 16, local_size_y = 16) in;
layout(rgba32f, binding = 0) uniform image2D hdr_image;
shared uint histogram_shared[256];
2020-09-22 15:39:20 -04:00
void main() {
histogram_shared[gl_LocalInvocationIndex] = 1;
groupMemoryBarrier();
2020-09-22 15:39:20 -04:00
}