From 7240534abc0dbcb5f6c2e4190548d94369610fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Mon, 17 Jun 2019 15:43:32 +0200 Subject: [PATCH] include/vkd3d_utils: Declare all exported functions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Józef Kucia Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- demos/demo.h | 1 - demos/demo_xcb.h | 1 + include/vkd3d_utils.h | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/demos/demo.h b/demos/demo.h index 2869ea7b..b2b93172 100644 --- a/demos/demo.h +++ b/demos/demo.h @@ -141,7 +141,6 @@ static inline HRESULT demo_create_root_signature(ID3D12Device *device, #ifdef _WIN32 #include "demo_win32.h" #else -#include #define INFINITE VKD3D_INFINITE #include "demo_xcb.h" #endif diff --git a/demos/demo_xcb.h b/demos/demo_xcb.h index 40e25340..6fae7909 100644 --- a/demos/demo_xcb.h +++ b/demos/demo_xcb.h @@ -19,6 +19,7 @@ #define VK_USE_PLATFORM_XCB_KHR #include +#include #include #include #include diff --git a/include/vkd3d_utils.h b/include/vkd3d_utils.h index 8a5689a8..4a5ee5dd 100644 --- a/include/vkd3d_utils.h +++ b/include/vkd3d_utils.h @@ -19,6 +19,8 @@ #ifndef __VKD3D_UTILS_H #define __VKD3D_UTILS_H +#include + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ @@ -34,6 +36,18 @@ HRESULT vkd3d_signal_event(HANDLE event); unsigned int vkd3d_wait_event(HANDLE event, unsigned int milliseconds); void vkd3d_destroy_event(HANDLE event); +HRESULT WINAPI D3D12CreateDevice(IUnknown *adapter, D3D_FEATURE_LEVEL feature_level, REFIID iid, void **device); +HRESULT WINAPI D3D12CreateRootSignatureDeserializer(const void *data, SIZE_T data_size, REFIID iid, void **deserializer); +HRESULT WINAPI D3D12GetDebugInterface(REFIID iid, void **debug); +HRESULT WINAPI D3D12SerializeRootSignature(const D3D12_ROOT_SIGNATURE_DESC *desc, + D3D_ROOT_SIGNATURE_VERSION version, ID3DBlob **blob, ID3DBlob **error_blob); + +/* 1.2 */ +HRESULT WINAPI D3D12CreateVersionedRootSignatureDeserializer(const void *data, + SIZE_T data_size, REFIID iid, void **deserializer); +HRESULT WINAPI D3D12SerializeVersionedRootSignature(const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *desc, + ID3DBlob **blob, ID3DBlob **error_blob); + #ifdef __cplusplus } #endif /* __cplusplus */