mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 01:24:11 +01:00
[dxvk] Remove layout transition hack for presentable images
This commit is contained in:
parent
ab3de5e94b
commit
7168cc160f
@ -4030,12 +4030,6 @@ namespace dxvk {
|
||||
m_state.om.renderPassOps.colorOps[i].loadLayout = m_rtLayouts.color[i];
|
||||
|
||||
m_state.om.renderPassOps.depthOps.loadLayout = m_rtLayouts.depth;
|
||||
|
||||
// Always discard swap chain images since we currently don't have a better solution for this.
|
||||
if (m_state.om.renderPassOps.colorOps[0].loadLayout == VK_IMAGE_LAYOUT_PRESENT_SRC_KHR) {
|
||||
m_state.om.renderPassOps.colorOps[0].loadLayout = VK_IMAGE_LAYOUT_UNDEFINED;
|
||||
m_state.om.renderPassOps.colorOps[0].loadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user