vkd3d: Small warning fixes.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
parent
9d8abd2db5
commit
c0b9682c69
|
@ -4520,10 +4520,12 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CreateSharedHandle(d3d12_device_if
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
static inline bool handle_is_kmt_style(HANDLE handle)
|
||||
{
|
||||
return ((ULONG_PTR)handle & 0x40000000) && ((ULONG_PTR)handle - 2) % 4 == 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE d3d12_device_OpenSharedHandle(d3d12_device_iface *iface,
|
||||
HANDLE handle, REFIID riid, void **object)
|
||||
|
|
|
@ -2730,13 +2730,13 @@ HRESULT d3d12_resource_create_committed(struct d3d12_device *device, const D3D12
|
|||
VkMemoryDedicatedAllocateInfo dedicated_info;
|
||||
VkImageMemoryRequirementsInfo2 image_info;
|
||||
VkMemoryRequirements2 memory_requirements;
|
||||
VkExportMemoryAllocateInfo export_info;
|
||||
VkBindImageMemoryInfo bind_info;
|
||||
bool use_dedicated_allocation;
|
||||
VkResult vr;
|
||||
|
||||
#ifdef _WIN32
|
||||
VkImportMemoryWin32HandleInfoKHR import_info;
|
||||
VkExportMemoryAllocateInfo export_info;
|
||||
#endif
|
||||
|
||||
if (FAILED(hr = d3d12_resource_create_vk_resource(object, device)))
|
||||
|
|
Loading…
Reference in New Issue