diff options
| author | wildcard <wildcard@eden-emu.dev> | 2026-03-04 22:46:55 +0100 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-03-04 22:46:55 +0100 |
| commit | c682306788055c57953aea38fdded95a0c6dfc09 (patch) | |
| tree | dc05cd919897970c2248ade9ec8d19ac4fccd398 /src/yuzu/main_window.cpp | |
| parent | 9d2341eaeafb275d3d3e4692812fe121ae24e2e3 (diff) | |
[vulkan] Implement push descriptors for compute pipelines (#3666)
Implements push descriptor for compute pipelines along with a bug fix, the increment logic was, offset += sizeof(DescriptorUpdateEntry);
This only advances the byte offset by a single descriptor slot, regardless of the array's size (descriptorCount).Now suppose if a shader utilized an array of descriptors (eg, layout(binding = 0) uniform sampler2D textures[4]) and if this happened to fit within the MaxPushDescriptors limit, the template would consume 4 * sizeof(DescriptorUpdateEntry) bytes, but the offset for the next binding would only advance by 1 slot.
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3666
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Co-authored-by: wildcard <wildcard@eden-emu.dev>
Co-committed-by: wildcard <wildcard@eden-emu.dev>
Diffstat (limited to 'src/yuzu/main_window.cpp')
0 files changed, 0 insertions, 0 deletions
