Signed-off-by: Józef Kucia jkucia@codeweavers.com --- dlls/d3d12/Makefile.in | 2 ++ dlls/d3d12/d3d12.spec | 2 +- dlls/d3d12/d3d12_main.c | 18 ++++++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/dlls/d3d12/Makefile.in b/dlls/d3d12/Makefile.in index d7ee1b59a221..458f3e202da6 100644 --- a/dlls/d3d12/Makefile.in +++ b/dlls/d3d12/Makefile.in @@ -1,5 +1,7 @@ MODULE = d3d12.dll IMPORTLIB = d3d12 +EXTRALIBS = $(VKD3D_LIBS) +EXTRAINCL = $(VKD3D_CFLAGS)
C_SRCS = \ d3d12_main.c diff --git a/dlls/d3d12/d3d12.spec b/dlls/d3d12/d3d12.spec index 613092bc88a0..b60799346e56 100644 --- a/dlls/d3d12/d3d12.spec +++ b/dlls/d3d12/d3d12.spec @@ -4,5 +4,5 @@ 103 stub D3D12CoreCreateLayeredDevice 104 stub D3D12CoreGetLayeredDeviceSize 105 stub D3D12CoreRegisterLayers -106 stub D3D12CreateRootSignatureDeserializer +106 stdcall D3D12CreateRootSignatureDeserializer(ptr long ptr ptr) 107 stub D3D12SerializeRootSignature diff --git a/dlls/d3d12/d3d12_main.c b/dlls/d3d12/d3d12_main.c index c1598ca2a1a5..b810dd5812a8 100644 --- a/dlls/d3d12/d3d12_main.c +++ b/dlls/d3d12/d3d12_main.c @@ -20,9 +20,18 @@ #include "config.h" #include "wine/port.h"
+#define VK_NO_PROTOTYPES +#define VKD3D_NO_VULKAN_H +#define VKD3D_NO_WIN32_TYPES +#define WINE_VK_ALIGN(x) + #include "wine/debug.h" +#include "wine/vulkan.h" + #include "d3d12.h"
+#include <vkd3d.h> + WINE_DEFAULT_DEBUG_CHANNEL(d3d12);
HRESULT WINAPI D3D12GetDebugInterface(REFIID iid, void **debug) @@ -40,3 +49,12 @@ HRESULT WINAPI D3D12CreateDevice(IUnknown *adapter, D3D_FEATURE_LEVEL minimum_fe
return E_NOTIMPL; } + +HRESULT WINAPI D3D12CreateRootSignatureDeserializer(const void *data, SIZE_T data_size, + REFIID iid, void **deserializer) +{ + TRACE("data %p, data_size %lu, iid %s, deserializer %p.\n", + data, data_size, debugstr_guid(iid), deserializer); + + return vkd3d_create_root_signature_deserializer(data, data_size, iid, deserializer); +}