summaryrefslogtreecommitdiff
path: root/src/audio/mock_audio_backend.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-05 20:03:21 +0100
committerskal <pascal.massimino@gmail.com>2026-02-05 20:03:21 +0100
commitde9c11d44788a9039ba1ef70f2d255898df37016 (patch)
tree0819eadc4275660bb1a083e0734f55febc385666 /src/audio/mock_audio_backend.h
parent6c09e3bdb5128dca64c457c3a6ebeb32adf98c10 (diff)
fix(gpu): Use GetTextureAsset() for procedural texture loading
Fixed demo64k crash caused by incorrect manual parsing of procedural texture headers in effects code. Problem: - Procedural textures (NOISE_TEX) have 8-byte header (width, height) - Effects checked size == 256*256*4 (262,144 bytes) - Actual size was 262,152 bytes (including header) - Size mismatch caused texture load failure → WebGPU bind group panic Solution: - Use GetTextureAsset() helper that properly parses header - Returns TextureAsset{width, height, pixels} with pixels pointing after header - Updated flash_cube_effect.cc and hybrid_3d_effect.cc Result: - Demo runs without crashes - NOISE_TEX loads correctly (256x256 RGBA8) - No more WebGPU bind group errors
Diffstat (limited to 'src/audio/mock_audio_backend.h')
0 files changed, 0 insertions, 0 deletions