From 27f0e49e2fe26efc2b56a1ae13ebf07b91723a9a Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sun, 20 Sep 2026 02:39:17 -0400 Subject: [PATCH] [MG_Backend] (Disaggregated): preserve indirect base-instance bits in draw payload --- MobileGL/MG_Backend/DirectVulkan/DirectVulkan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MobileGL/MG_Backend/DirectVulkan/DirectVulkan.cpp b/MobileGL/MG_Backend/DirectVulkan/DirectVulkan.cpp index 476ec41e..77819aaf 100644 --- a/MobileGL/MG_Backend/DirectVulkan/DirectVulkan.cpp +++ b/MobileGL/MG_Backend/DirectVulkan/DirectVulkan.cpp @@ -318,7 +318,7 @@ namespace MobileGL::MG_Backend::DirectVulkan { DrawElementsIndirectCommand command{}; Memcpy(&command, bytes.data() + static_cast(i) * stride, sizeof(command)); params[i] = {command.count, command.instanceCount, command.firstIndex, - command.baseVertex, command.baseInstance}; + command.baseVertex, std::bit_cast(command.baseInstance)}; const Uint64 end = (static_cast(command.firstIndex) + command.count) * indexSize; if (end > std::numeric_limits::max()) return; payload.indexBufferView.indexByteSize = std::max(payload.indexBufferView.indexByteSize,