summaryrefslogtreecommitdiff
path: root/src/host/audio.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 08:01:22 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commitf0c4ef1a771f6b13cbd86cccdb56accfd39bbd69 (patch)
tree15574741d6e9d6866ef64c0fb3033e3b69cd9aaf /src/host/audio.zig
parentfb237529724ae1c01b15f99e3b25bdce7c77cf82 (diff)
downloadsketchbook-f0c4ef1a771f6b13cbd86cccdb56accfd39bbd69.tar.gz
sketchbook-f0c4ef1a771f6b13cbd86cccdb56accfd39bbd69.zip
gpu: a uniform block over 4096 bytes fails to compile
SDL_GPU's Vulkan backend binds 4 KiB of a uniform block (its descriptors' range, MAX_UBO_SECTION_SIZE in SDL_gpu_vulkan.c) and a larger block was cut off without a word, the rest of it read as nothing: examples/live met it with its two tapes in one block. glsl.assertStd140, which `gpu.uniform` and the GLSL layouts of a `.uniform` type both run, now refuses a block past `max_uniform_block` (4096) at compile time, the error naming the type, its size and the storage buffer to use instead. The README says so where it says std140 is checked. Test: a 4096-byte block passes (glsl.zig); a 4112-byte one fails to compile with the message, checked by hand (there is no harness for compile errors). zig build test: 186 of 186 steps, 148 of 148 tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/host/audio.zig')
0 files changed, 0 insertions, 0 deletions