1
0
Fork 0
godot/drivers
Stuart Carnie 541f62617f Metal: Fix dynamic uniform buffer offset corruption when rebinding sets
When the same uniform set is bound multiple times within a render pass
(e.g., OPAQUE pass then ALPHA pass with different instance buffers),
the dynamic offset bits were being OR'd together, corrupting the packed
frame indices.

For example, if OPAQUE binds set 1 with frame_idx=1 (0x10) and ALPHA
binds set 1 with frame_idx=2 (0x20), the OR produces 0x30 instead of
the correct 0x20, causing the shader to read from the wrong buffer
offset.

This fix clears the relevant bits for each set being bound before
OR'ing the new values, ensuring only the latest frame indices are used.

Fixes rendering artifacts in the mobile renderer which uses two dynamic
uniforms (uniform buffer + storage buffer) in set 1, unlike the clustered
renderer which only has one.
2026-01-09 16:34:24 +11:00
..
accesskit Update access-kit to 0.18.0 2025-12-14 01:05:36 +02:00
alsa Move server files into their subfolders 2025-09-30 19:39:39 -07:00
alsamidi Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
apple Increase stack size for all secondary threads on Apple platforms 2025-10-27 12:49:35 +01:00
apple_embedded [iOS] Update device SOC list and DPI list. 2025-12-18 16:30:14 +02:00
backtrace Revert "SCons: Add `CPPEXTPATH` for external includes" 2025-10-06 13:09:22 -05:00
coreaudio Fix CoreAudio driver crash when starting input with uninitialized device 2025-11-05 16:46:40 +08:00
coremidi Introduce 'drivers/apple_embedded' abstract platform for code reuse 2025-05-19 15:37:13 -07:00
d3d12 Merge pull request #114645 from blueskythlikesclouds/fix-dxil-view-instancing-workaround 2026-01-07 01:42:12 +01:00
egl Remove `file_access.h` and `script_backtrace.h` includes from `logger.h`. 2025-10-05 17:49:23 +09:00
gl_context SCons: Remove system includes 2025-10-07 08:11:29 -05:00
gles3 Fix OpenGL motion vector regression 2025-12-21 11:23:49 +11:00
metal Metal: Fix dynamic uniform buffer offset corruption when rebinding sets 2026-01-09 16:34:24 +11:00
png Revert "SCons: Add `CPPEXTPATH` for external includes" 2025-10-06 13:09:22 -05:00
pulseaudio Access microphone buffer from AudioServer and prevent microphone double starts 2025-12-03 19:49:56 +01:00
sdl sdl: Update to 3.2.28 2025-12-13 00:04:56 +01:00
unix Merge pull request #109112 from bruvzg/mem_stat 2025-12-18 23:29:29 +01:00
vulkan Merge pull request #114657 from DarioSamo/immutable-sampler-descriptor-fix 2026-01-08 17:15:33 +01:00
wasapi Access microphone buffer from AudioServer and prevent microphone double starts 2025-12-03 19:49:56 +01:00
windows [FileAccess] Implement support for reading and writing extended file attributes/alternate data streams. 2025-11-24 11:18:25 +02:00
winmidi Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
xaudio2 Move server files into their subfolders 2025-09-30 19:39:39 -07:00
SCsub Add support for SDL3 joystick input driver 2025-06-25 01:28:50 +02:00
register_driver_types.cpp
register_driver_types.h