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

[d3d11] Manually discard swap chain image view on present

This commit is contained in:
Philip Rebohle 2021-02-21 02:19:23 +01:00
parent 73a06aea72
commit ab3de5e94b
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -316,6 +316,7 @@ namespace dxvk {
renderTargets.color[0].view = m_imageViews.at(imageIndex);
renderTargets.color[0].layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
m_context->bindRenderTargets(renderTargets);
m_context->discardImageView(m_imageViews.at(imageIndex), VK_IMAGE_ASPECT_COLOR_BIT);
VkViewport viewport;
viewport.x = 0.0f;