summaryrefslogtreecommitdiff
path: root/src/gpu/effect.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-11 11:42:46 +0100
committerskal <pascal.massimino@gmail.com>2026-02-11 11:42:46 +0100
commit5fb1bcc25fef7388a2d68be6c1f062bcf996fd85 (patch)
tree47ccf3b23eb3f947f7cc3fb0dc5b4e504c95c2e3 /src/gpu/effect.h
parentd378da77eec4d506bc01e4c08c38644d72969cc7 (diff)
fix: Resolve auxiliary texture resolution mismatch bug
Auxiliary textures were created during init() using default dimensions (1280x720) before resize() was called with actual window size. This caused compute shaders to receive uniforms with correct resolution but render to wrong-sized textures. Changes: - Add MainSequence::resize_auxiliary_texture() to recreate textures - Override resize() in CircleMaskEffect to resize circle_mask texture - Override resize() in CNNEffect to resize captured_frame texture - Bind groups are recreated with new texture views after resize Tests: All 36 tests passing Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/gpu/effect.h')
-rw-r--r--src/gpu/effect.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/effect.h b/src/gpu/effect.h
index 7991700..ed90ac7 100644
--- a/src/gpu/effect.h
+++ b/src/gpu/effect.h
@@ -137,6 +137,7 @@ class MainSequence {
// Auxiliary texture registry for inter-effect texture sharing
void register_auxiliary_texture(const char* name, int width, int height);
+ void resize_auxiliary_texture(const char* name, int width, int height);
WGPUTextureView get_auxiliary_view(const char* name);
#if !defined(STRIP_ALL)