ogl_beamforming

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

Commit: 5c26ece8da84a21e67ea8cd73da392159cff98b4
Parent: a9a1e51cee3a6fb560fc7128d96a12e6e08f50db
Author: Randy Palamar
Date:   Mon,  8 Jul 2024 09:08:20 -0600

hadamard: invert test

last commit mistakenly inverted the test

Diffstat:
Mshaders/hadamard.glsl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shaders/hadamard.glsl b/shaders/hadamard.glsl @@ -45,7 +45,7 @@ void main() * We need to shift arithmetically (maintaining the sign) to get the * desired element. If the time sample is even we take the upper half * and if its odd we take the lower half. */ - int lfs = (int(time_sample) & 1) * int(16); + uint lfs = ~(time_sample & 1) * 16; /* NOTE: Compute N-D dot product */ int sum = 0;