mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[d3d9] Set VK_IMAGE_USAGE_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT for render targets
Closes: #2825
This commit is contained in:
parent
6baaa3a5f2
commit
870dd18f92
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user