ogl_beamforming

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

Commit: c35e96bd48674a4bbb83720bfa5555d910e46c81
Parent: e19c367e308b99a78e9d33d755d96ce6dc882c2d
Author: Randy Palamar
Date:   Fri,  3 Oct 2025 12:42:31 -0600

meta: allow up to 32 shader local flags

the old limit was based on not generating billions of shader
permutations. this is not an issue when the exact variation is
generated at runtime.

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

diff --git a/build.c b/build.c @@ -1576,7 +1576,7 @@ meta_commit_shader_flag(MetaContext *ctx, u32 flag_list_id, s8 flag, MetaEntry * { assert(flag_list_id < ctx->flags_for_shader.count); iz index = meta_intern_string(ctx, ctx->flags_for_shader.data + flag_list_id, flag); - if (index > 7) meta_entry_error(e, "Shaders only support 8 local flags\n"); + if (index > 31) meta_entry_error(e, "maximum shader local flags exceeded: limit: 32\n"); u8 result = (u8)index; return result; }