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,