mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
2b71ea406f
The existing implementation using virtual descriptor heaps, where Vk descriptor sets are created for the bindings in the root descriptor tables, is inefficient when multiple command lists are used with large descriptor heaps. It also cannot support updating a descriptor set after it is bound. This patch creates Vk sets for each D3D12 heap. Because D3D12 heaps can contain CBV, SRV and UAV descriptors in the same heap, multiple Vk sets are needed for each heap, however the total number of populated descriptors is never more than (heap size + UAV counter count). A new 'virtual_heaps' config option is introduced to make the old implementation available when needed. It's not always possible to determine if this is necessary when the device is created. Up to nine Vk descriptor sets may be used. It's theoretically possible to reduce this to eight by placing immutable samplers in the push descriptor set layout, but contradictions in earlier versions of the Vulkan spec made driver support inconsistent. The documentation was corrected in version 1.2.203. This patch also adds support for UAV counter descriptor arrays. It's not practical to add this in a separate patch due to complications with combining the old UAV counter implementation with the new descriptor heap implementation. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47713 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47154 Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> |
||
---|---|---|
.. | ||
private | ||
.gitignore | ||
vkd3d_d3d9types.h | ||
vkd3d_d3d12.idl | ||
vkd3d_d3d12sdklayers.idl | ||
vkd3d_d3dcommon.idl | ||
vkd3d_d3dcompiler.h | ||
vkd3d_d3dx9shader.idl | ||
vkd3d_dxgi1_2.idl | ||
vkd3d_dxgi1_3.idl | ||
vkd3d_dxgi1_4.idl | ||
vkd3d_dxgi.idl | ||
vkd3d_dxgibase.idl | ||
vkd3d_dxgiformat.idl | ||
vkd3d_dxgitype.idl | ||
vkd3d_shader.h | ||
vkd3d_types.h | ||
vkd3d_unknown.idl | ||
vkd3d_utils.h | ||
vkd3d_windows.h | ||
vkd3d.h |