diff options
author | Józef Kucia <jkucia@codeweavers.com> | 2016-10-07 14:26:39 +0300 |
---|---|---|
committer | Józef Kucia <jkucia@codeweavers.com> | 2016-10-07 14:26:39 +0300 |
commit | 0c1432e671248ca2c8f6d0509d4eb25954e15bad (patch) | |
tree | b01d23bc83c4f3c734adbfa3e9c5a26415aa7176 /libs/vkd3d-utils | |
parent | ef6a3d78a25258dd92dde4cc965deadcac076d4b (diff) |
libs/vkd3d: Move D3D12CreateDevice() to libvkd3d-utils.
Diffstat (limited to 'libs/vkd3d-utils')
-rw-r--r-- | libs/vkd3d-utils/vkd3d_utils_main.c | 17 | ||||
-rw-r--r-- | libs/vkd3d-utils/vkd3d_utils_private.h | 2 |
2 files changed, 18 insertions, 1 deletions
diff --git a/libs/vkd3d-utils/vkd3d_utils_main.c b/libs/vkd3d-utils/vkd3d_utils_main.c index efe636e9..e0b6c303 100644 --- a/libs/vkd3d-utils/vkd3d_utils_main.c +++ b/libs/vkd3d-utils/vkd3d_utils_main.c @@ -28,3 +28,20 @@ HRESULT WINAPI D3D12GetDebugInterface(REFIID riid, void **debug) return E_NOTIMPL; } + +HRESULT WINAPI D3D12CreateDevice(IUnknown *adapter, + D3D_FEATURE_LEVEL minimum_feature_level, REFIID riid, void **device) +{ + struct vkd3d_device_create_info create_info; + + TRACE("adapter %p, minimum_feature_level %#x, riid %s, device %p.\n", + adapter, minimum_feature_level, debugstr_guid(riid), device); + + if (adapter) + FIXME("Ignoring adapter %p.\n", adapter); + + create_info.minimum_feature_level = minimum_feature_level; + create_info.signal_event_pfn = VKD3DSignalEvent; + + return vkd3d_create_device(&create_info, riid, device); +} diff --git a/libs/vkd3d-utils/vkd3d_utils_private.h b/libs/vkd3d-utils/vkd3d_utils_private.h index b942d43a..a6405760 100644 --- a/libs/vkd3d-utils/vkd3d_utils_private.h +++ b/libs/vkd3d-utils/vkd3d_utils_private.h @@ -27,6 +27,6 @@ #define NONAMELESSUNION #include "vkd3d_debug.h" -#include "d3d12.h" +#include "vkd3d.h" #endif /* __VKD3D_UTILS_PRIVATE_H */ |