mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
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:
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
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user