ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

buffer_clear.glsl (263B)


      1 /* See LICENSE for license details. */
      2 layout(std430, buffer_reference, buffer_reference_align = 32) restrict writeonly buffer Buffer {
      3 	u32vec4 x[];
      4 };
      5 
      6 void main()
      7 {
      8 	u32 index = gl_GlobalInvocationID.x;
      9 	if (index < bins)
     10 		Buffer(data).x[index] = clear_v4;
     11 }