mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[d3d9] Pass feedback loop aspect mask to backend
This commit is contained in:
parent
8d070e54a1
commit
90abd993d4
@ -5464,11 +5464,20 @@ namespace dxvk {
|
||||
}
|
||||
}
|
||||
|
||||
VkImageAspectFlags feedbackLoopAspects = 0u;
|
||||
if (m_hazardLayout == VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT) {
|
||||
if (m_activeHazardsRT != 0)
|
||||
feedbackLoopAspects |= VK_IMAGE_ASPECT_COLOR_BIT;
|
||||
if (m_activeHazardsDS != 0)
|
||||
feedbackLoopAspects |= VK_IMAGE_ASPECT_DEPTH_BIT;
|
||||
}
|
||||
|
||||
// Create and bind the framebuffer object to the context
|
||||
EmitCs([
|
||||
cAttachments = std::move(attachments)
|
||||
cAttachments = std::move(attachments),
|
||||
cFeedbackLoopAspects = feedbackLoopAspects
|
||||
] (DxvkContext* ctx) mutable {
|
||||
ctx->bindRenderTargets(std::move(cAttachments), 0u);
|
||||
ctx->bindRenderTargets(std::move(cAttachments), cFeedbackLoopAspects);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user