ogl_beamforming

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

Commit: 65f7c333f3ae2fff6db4f7870403206d368f87af
Parent: 70de4dde90182764b2ea69dd0f2da89467d74fd7
Author: Randy Palamar
Date:   Thu,  8 Aug 2024 14:57:23 -0600

don't set GL_DYNAMIC_STORAGE_BIT on rf_data_ssbos

The client (CPU) does not upload data to these buffers.

Diffstat:
Mbeamformer.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/beamformer.c b/beamformer.c @@ -71,7 +71,7 @@ alloc_shader_storage(BeamformerCtx *ctx, Arena a) for (u32 i = 0; i < ARRAY_COUNT(ctx->csctx.rf_data_ssbos); i++) { glBindBuffer(GL_SHADER_STORAGE_BUFFER, ctx->csctx.rf_data_ssbos[i]); - glBufferStorage(GL_SHADER_STORAGE_BUFFER, rf_decoded_size, 0, GL_DYNAMIC_STORAGE_BIT); + glBufferStorage(GL_SHADER_STORAGE_BUFFER, rf_decoded_size, 0, 0); } /* NOTE: store hadamard in GPU once; it won't change for a particular imaging session */