ogl_beamforming

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

Commit: 07096573cd81e79b63ec063f543b4ecf6d6e4973
Parent: aa24a948f401aee77575c2761d461f94517ae185
Author: Randy Palamar
Date:   Mon, 17 Aug 2026 18:20:48 -0700

core: improve shader layout for coherency weighting

Diffstat:
Mbeamformer_core.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/beamformer_core.c b/beamformer_core.c @@ -855,7 +855,9 @@ plan_compute_pipeline(BeamformerComputePlan *cp, BeamformerParameterBlock *pb, A }break; case BeamformerShaderKind_CoherencyWeighting:{ - sd->layout = layout_for_output(cp->output_points); + // NOTE(rnp): beamformed data is stored in linear order; making the layout 2D or 3D + // here is just slower + sd->layout = (uv3){{subgroup_size, 1, 1}}; sd->dispatch = dispatch_for_output(sd->layout, cp->output_points); BeamformerCoherencyWeightingBakeParameters *cw = &sd->bake.CoherencyWeighting;