vkd3d: Expose the image view usage to Vulkan.

This prevents a failure with MoltenVK, which is not able to
create 2D-array view for any usage other than color attachment.
This commit is contained in:
Giovanni Mascellani
2023-09-21 23:10:25 +02:00
committed by Alexandre Julliard
parent 2dd4211b77
commit 83ddfb9e8d
Notes: Alexandre Julliard 2023-09-26 22:48:16 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/365
4 changed files with 22 additions and 0 deletions

View File

@@ -5462,6 +5462,7 @@ static void STDMETHODCALLTYPE d3d12_command_list_ClearUnorderedAccessViewUint(ID
view_desc.layer_idx = view->info.texture.layer_idx;
view_desc.layer_count = view->info.texture.layer_count;
view_desc.vk_image_aspect = VK_IMAGE_ASPECT_COLOR_BIT;
view_desc.usage = VK_IMAGE_USAGE_STORAGE_BIT;
if (!vkd3d_create_texture_view(device, VKD3D_DESCRIPTOR_MAGIC_UAV, resource_impl->u.vk_image, &view_desc,
&uint_view))