mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Include descriptor indexing in the shader extensions if the device supports it.
Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6d5e71f5b8
commit
6fe884a02c
@ -1457,6 +1457,10 @@ static HRESULT vkd3d_init_device_caps(struct d3d12_device *device,
|
|||||||
vulkan_info->shader_extensions[0] = VKD3D_SHADER_SPIRV_EXTENSION_EXT_DEMOTE_TO_HELPER_INVOCATION;
|
vulkan_info->shader_extensions[0] = VKD3D_SHADER_SPIRV_EXTENSION_EXT_DEMOTE_TO_HELPER_INVOCATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (vulkan_info->EXT_descriptor_indexing)
|
||||||
|
vulkan_info->shader_extensions[vulkan_info->shader_extension_count++]
|
||||||
|
= VKD3D_SHADER_SPIRV_EXTENSION_EXT_DESCRIPTOR_INDEXING;
|
||||||
|
|
||||||
/* Disable unused Vulkan features. */
|
/* Disable unused Vulkan features. */
|
||||||
features->shaderTessellationAndGeometryPointSize = VK_FALSE;
|
features->shaderTessellationAndGeometryPointSize = VK_FALSE;
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
#define VKD3D_MAX_COMPATIBLE_FORMAT_COUNT 6u
|
#define VKD3D_MAX_COMPATIBLE_FORMAT_COUNT 6u
|
||||||
#define VKD3D_MAX_QUEUE_FAMILY_COUNT 3u
|
#define VKD3D_MAX_QUEUE_FAMILY_COUNT 3u
|
||||||
#define VKD3D_MAX_SHADER_EXTENSIONS 1u
|
#define VKD3D_MAX_SHADER_EXTENSIONS 2u
|
||||||
#define VKD3D_MAX_SHADER_STAGES 5u
|
#define VKD3D_MAX_SHADER_STAGES 5u
|
||||||
#define VKD3D_MAX_VK_SYNC_OBJECTS 4u
|
#define VKD3D_MAX_VK_SYNC_OBJECTS 4u
|
||||||
#define VKD3D_MAX_DESCRIPTOR_SETS 2u
|
#define VKD3D_MAX_DESCRIPTOR_SETS 2u
|
||||||
|
Loading…
x
Reference in New Issue
Block a user