mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-20 00:11:56 +09:00
[MG_Backend] (Disaggregated): retire the final wire pass at present submission
This commit is contained in:
@@ -13445,6 +13445,11 @@ void main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void VulkanRenderer::Present() {
|
void VulkanRenderer::Present() {
|
||||||
|
#if MOBILEGL_BUILD_DISAGGREGATED
|
||||||
|
// Present has its own submit path. Tag its last wire pass before that
|
||||||
|
// submission, rather than retaining it until a draw in the next frame.
|
||||||
|
RetireWireDrawPass();
|
||||||
|
#endif
|
||||||
if (m_swapchainObject.GetHandle() == VK_NULL_HANDLE || m_presentSuspended) {
|
if (m_swapchainObject.GetHandle() == VK_NULL_HANDLE || m_presentSuspended) {
|
||||||
// No usable swapchain: the window was zero-area at initialization, or
|
// No usable swapchain: the window was zero-area at initialization, or
|
||||||
// presentation was suspended when the window minimized. Try to bring a
|
// presentation was suspended when the window minimized. Try to bring a
|
||||||
|
|||||||
Reference in New Issue
Block a user