=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: vkd3d: Add asserts for indirect draw arguments.

Alexandre Julliard julliard at winehq.org
Tue Dec 4 13:22:16 CST 2018


Module: vkd3d
Branch: master
Commit: c15ab6a51cf93d36884758a499a91acfd7578517
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=c15ab6a51cf93d36884758a499a91acfd7578517

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Tue Dec  4 15:55:55 2018 +0100

vkd3d: Add asserts for indirect draw arguments.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 libs/vkd3d/command.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index 937c7e3..06823c8 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -4087,6 +4087,10 @@ static void STDMETHODCALLTYPE d3d12_command_list_EndEvent(ID3D12GraphicsCommandL
     FIXME("iface %p stub!\n", iface);
 }
 
+STATIC_ASSERT(sizeof(VkDispatchIndirectCommand) == sizeof(D3D12_DISPATCH_ARGUMENTS));
+STATIC_ASSERT(sizeof(VkDrawIndexedIndirectCommand) == sizeof(D3D12_DRAW_INDEXED_ARGUMENTS));
+STATIC_ASSERT(sizeof(VkDrawIndirectCommand) == sizeof(D3D12_DRAW_ARGUMENTS));
+
 static void STDMETHODCALLTYPE d3d12_command_list_ExecuteIndirect(ID3D12GraphicsCommandList *iface,
         ID3D12CommandSignature *command_signature, UINT max_command_count, ID3D12Resource *arg_buffer,
         UINT64 arg_buffer_offset, ID3D12Resource *count_buffer, UINT64 count_buffer_offset)




More information about the wine-cvs mailing list