1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d9] Set VK_IMAGE_USAGE_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT for render targets

Closes: #2825
This commit is contained in:
Joshua Ashton 2022-08-16 08:43:52 +00:00
parent 6baaa3a5f2
commit 870dd18f92

View File

@ -299,6 +299,13 @@ namespace dxvk {
| VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT;
}
const bool hasAttachmentFeedbackLoops =
m_device->GetDXVKDevice()->features().extAttachmentFeedbackLoopLayout.attachmentFeedbackLoopLayout;
const bool isRT = m_desc.Usage & D3DUSAGE_RENDERTARGET;
if (isRT && hasAttachmentFeedbackLoops)
imageInfo.usage |= VK_IMAGE_USAGE_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT;
if (ResourceType == D3DRTYPE_CUBETEXTURE)
imageInfo.flags |= VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;