ogl_beamforming

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

Commit: 66a6d13739d3e37b903893741843bcee43eb60d4
Parent: 399d6e0e1f756a103dd3a23dd1f9c3b3e8aae63a
Author: Randy Palamar
Date:   Tue,  9 Sep 2025 13:26:41 -0600

core: make sure correct shader is selected when base shader has no parameters

Diffstat:
Mbeamformer.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/beamformer.c b/beamformer.c @@ -1,6 +1,5 @@ /* See LICENSE for license details. */ /* TODO(rnp): - * [ ]: bug: shaders with no parameters aren't currently properly selected * [ ]: make decode output real values for real inputs and complex values for complex inputs * - this means that das should have a RF version and an IQ version * - this will also flip the current hack to support demodulate after decode to @@ -536,7 +535,10 @@ plan_compute_pipeline(BeamformerComputePlan *cp, BeamformerParameterBlock *pb) match = beamformer_shader_das_match(das_data_kind, local_flags); commit = 1; }break; - default:{ commit = 1; }break; + default:{ + match = beamformer_shader_descriptors[shader].first_match_vector_index; + commit = 1; + }break; } if (commit) {