From 922d5958425e7c45cb51eb8ffb8656679f2553bb Mon Sep 17 00:00:00 2001 From: Krzysztof Bogacki Date: Thu, 18 May 2023 02:21:46 +0200 Subject: [PATCH] vkd3d: Allow querying VK_EXT_opacity_micromap support via ID3D12DeviceExt. Signed-off-by: Krzysztof Bogacki --- include/vkd3d_vk_includes.h | 1 + libs/vkd3d/device_vkd3d_ext.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/include/vkd3d_vk_includes.h b/include/vkd3d_vk_includes.h index 11c061503c..aa7ed0d9f5 100644 --- a/include/vkd3d_vk_includes.h +++ b/include/vkd3d_vk_includes.h @@ -40,6 +40,7 @@ typedef enum VkImageLayout VkImageLayout; typedef enum D3D12_VK_EXTENSION { + D3D12_VK_EXT_OPACITY_MICROMAP = 0x0, D3D12_VK_NVX_BINARY_IMPORT = 0x1, D3D12_VK_NVX_IMAGE_VIEW_HANDLE = 0x2, D3D12_VK_NV_LOW_LATENCY_2 = 0x3 diff --git a/libs/vkd3d/device_vkd3d_ext.c b/libs/vkd3d/device_vkd3d_ext.c index 8c1d16e085..e317fb5bf0 100644 --- a/libs/vkd3d/device_vkd3d_ext.c +++ b/libs/vkd3d/device_vkd3d_ext.c @@ -69,6 +69,9 @@ static BOOL STDMETHODCALLTYPE d3d12_device_vkd3d_ext_GetExtensionSupport(d3d12_d TRACE("iface %p, extension %u \n", iface, extension); switch (extension) { + case D3D12_VK_EXT_OPACITY_MICROMAP: + ret_val = device->vk_info.EXT_opacity_micromap; + break; case D3D12_VK_NVX_BINARY_IMPORT: ret_val = device->vk_info.NVX_binary_import; break;