vkd3d: Move descriptor sets backing the SRV-UAV-CBV heap at the end.

So that when mutable descriptors are in use we can avoid putting
the other descriptor sets backing the SRV-UAV-CBV descriptor heap
in the pipeline layout altogether.
This commit is contained in:
Giovanni Mascellani 2024-10-18 21:56:55 +02:00 committed by Henri Verbeet
parent 8d030718ae
commit 96b324c156
Notes: Henri Verbeet 2024-10-23 16:18:40 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1218

View File

@ -772,15 +772,15 @@ void d3d12_dsv_desc_create_dsv(struct d3d12_dsv_desc *dsv_desc, struct d3d12_dev
enum vkd3d_vk_descriptor_set_index enum vkd3d_vk_descriptor_set_index
{ {
VKD3D_SET_INDEX_UNIFORM_BUFFER = 0, VKD3D_SET_INDEX_SAMPLER,
VKD3D_SET_INDEX_UAV_COUNTER,
VKD3D_SET_INDEX_UNIFORM_BUFFER,
VKD3D_SET_INDEX_MUTABLE = VKD3D_SET_INDEX_UNIFORM_BUFFER, VKD3D_SET_INDEX_MUTABLE = VKD3D_SET_INDEX_UNIFORM_BUFFER,
VKD3D_SET_INDEX_UNIFORM_TEXEL_BUFFER = 1, VKD3D_SET_INDEX_UNIFORM_TEXEL_BUFFER,
VKD3D_SET_INDEX_SAMPLED_IMAGE = 2, VKD3D_SET_INDEX_SAMPLED_IMAGE,
VKD3D_SET_INDEX_STORAGE_TEXEL_BUFFER = 3, VKD3D_SET_INDEX_STORAGE_TEXEL_BUFFER,
VKD3D_SET_INDEX_STORAGE_IMAGE = 4, VKD3D_SET_INDEX_STORAGE_IMAGE,
VKD3D_SET_INDEX_SAMPLER = 5, VKD3D_SET_INDEX_COUNT
VKD3D_SET_INDEX_UAV_COUNTER = 6,
VKD3D_SET_INDEX_COUNT = 7
}; };
extern const enum vkd3d_vk_descriptor_set_index vk_descriptor_set_index_table[]; extern const enum vkd3d_vk_descriptor_set_index vk_descriptor_set_index_table[];