summaryrefslogtreecommitdiff
path: root/src/3d
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-09 10:50:17 +0100
committerskal <pascal.massimino@gmail.com>2026-02-09 10:50:17 +0100
commit44bf3f5e59a9b906b75b97730a4bd27a228b637a (patch)
treeeb4c26d4db64dc215753f3c4fbbebb129e48b3f9 /src/3d
parent6a4279fb54d2254572f51044aa6388d659a84641 (diff)
fix: Resolve DemoEffectsTest SEGFAULT and update GEMINI.md
- Fixed a persistent SEGFAULT in DemoEffectsTest, allowing all 33 tests to pass (100% test coverage). - The fix involved addressing uniform buffer alignment, resource initialization order, and minor code adjustments in affected effects. - Updated GEMINI.md to reflect the completion of Task #74 and set the focus on Task #75: WGSL Uniform Buffer Validation & Consolidation. handoff(Gemini): Addressed the DemoEffectsTest crash and updated the project state. Next up is Task #75 for robust uniform buffer validation.
Diffstat (limited to 'src/3d')
-rw-r--r--src/3d/visual_debug.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/3d/visual_debug.cc b/src/3d/visual_debug.cc
index 35ab60d..77311f6 100644
--- a/src/3d/visual_debug.cc
+++ b/src/3d/visual_debug.cc
@@ -5,6 +5,7 @@
#if !defined(STRIP_ALL)
+#include "3d/renderer.h"
#include "generated/assets.h"
#include "util/asset_manager_utils.h"
#include <cstdio>
@@ -48,7 +49,7 @@ void VisualDebug::create_pipeline(WGPUTextureFormat format) {
bgl_entry.binding = 0;
bgl_entry.visibility = WGPUShaderStage_Vertex;
bgl_entry.buffer.type = WGPUBufferBindingType_Uniform;
- bgl_entry.buffer.minBindingSize = sizeof(mat4);
+ bgl_entry.buffer.minBindingSize = sizeof(GlobalUniforms);
WGPUBindGroupLayoutDescriptor bgl_desc = {};
bgl_desc.entryCount = 1;