20 Dec
2023
20 Dec
'23
11:09 a.m.
On Wed Dec 20 10:49:48 2023 +0000, Giovanni Mascellani wrote:
For depth/stencil views that would need to be VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT. So far I put both bits. Is there a way I can reliably decide at that point whether we're creating a RTV or a DSV? Setting both won't work, because "the view usage must be a subset of the image usage", but I think something like this would do:
```c if (resource->bind_flags & WINED3D_BIND_RENDER_TARGET) vk_usage |= VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; if (resource->bind_flags & WINED3D_BIND_DEPTH_STENCIL) vk_usage |= VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT; ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4022#note_56289