From f83ba898afac3d58ffb04d989270722cbc8e0b7c Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Fri, 29 Dec 2023 21:51:05 +0100 Subject: [PATCH] [dxvk] Use signed int for vertexOffset BaseVertexIndex is signed in Vulkan, D3D11 & D3D9. --- src/dxvk/dxvk_cmdlist.h | 2 +- src/dxvk/dxvk_context.cpp | 2 +- src/dxvk/dxvk_context.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dxvk/dxvk_cmdlist.h b/src/dxvk/dxvk_cmdlist.h index b9b9a165d..1934b9a05 100644 --- a/src/dxvk/dxvk_cmdlist.h +++ b/src/dxvk/dxvk_cmdlist.h @@ -671,7 +671,7 @@ namespace dxvk { uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, - uint32_t vertexOffset, + int32_t vertexOffset, uint32_t firstInstance) { m_vkd->vkCmdDrawIndexed(m_cmd.execBuffer, indexCount, instanceCount, diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 80c2620de..bbd139edb 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -1354,7 +1354,7 @@ namespace dxvk { uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, - uint32_t vertexOffset, + int32_t vertexOffset, uint32_t firstInstance) { if (this->commitGraphicsState()) { m_cmd->cmdDrawIndexed( diff --git a/src/dxvk/dxvk_context.h b/src/dxvk/dxvk_context.h index 93ed91e36..b1fbc7dfe 100644 --- a/src/dxvk/dxvk_context.h +++ b/src/dxvk/dxvk_context.h @@ -810,7 +810,7 @@ namespace dxvk { uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, - uint32_t vertexOffset, + int32_t vertexOffset, uint32_t firstInstance); /**