Commit 49827169 authored by Laszlo Agocs's avatar Laszlo Agocs

Track resolveTexture usage correctly

parent 60983959
......@@ -1546,6 +1546,8 @@ void QRhiMetal::beginPass(QRhiCommandBuffer *cb,
QRHI_RES(QMetalTexture, colorAttachment.texture())->lastActiveFrameSlot = currentFrameSlot;
else if (colorAttachment.renderBuffer())
QRHI_RES(QMetalRenderBuffer, colorAttachment.renderBuffer())->lastActiveFrameSlot = currentFrameSlot;
if (colorAttachment.resolveTexture())
QRHI_RES(QMetalTexture, colorAttachment.resolveTexture())->lastActiveFrameSlot = currentFrameSlot;
}
if (rtTex->m_desc.depthStencilBuffer())
QRHI_RES(QMetalRenderBuffer, rtTex->m_desc.depthStencilBuffer())->lastActiveFrameSlot = currentFrameSlot;
......
......@@ -1833,6 +1833,8 @@ void QRhiVulkan::activateTextureRenderTarget(QRhiCommandBuffer *, QRhiTextureRen
rbD->backingTexture->layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
rbD->lastActiveFrameSlot = currentFrameSlot;
}
if (colorAttachment.resolveTexture())
QRHI_RES(QVkTexture, colorAttachment.resolveTexture())->lastActiveFrameSlot = currentFrameSlot;
}
if (rtD->m_desc.depthStencilBuffer())
QRHI_RES(QVkRenderBuffer, rtD->m_desc.depthStencilBuffer())->lastActiveFrameSlot = currentFrameSlot;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment