Skip to content

Commit

Permalink
vkd3d: Allow querying VK_EXT_opacity_micromap support via ID3D12Devic…
Browse files Browse the repository at this point in the history
…eExt.

Signed-off-by: Krzysztof Bogacki <[email protected]>
  • Loading branch information
Saancreed committed Jun 17, 2024
1 parent 455d86f commit 8ebfdd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/vkd3d_vk_includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions libs/vkd3d/device_vkd3d_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8ebfdd8

Please sign in to comment.