From 690ccfdc0a40d59bc38832d0d58d0feb2e829cb9 Mon Sep 17 00:00:00 2001 From: Evgeny Gorodetsky Date: Fri, 27 Dec 2024 20:30:33 +0300 Subject: [PATCH] Update DirectX frame synchronization to align with Vulkan and Metal --- .../DirectX/Sources/Methane/Graphics/DirectX/RenderContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Graphics/RHI/DirectX/Sources/Methane/Graphics/DirectX/RenderContext.cpp b/Modules/Graphics/RHI/DirectX/Sources/Methane/Graphics/DirectX/RenderContext.cpp index 0871f938e..5accf8a3e 100644 --- a/Modules/Graphics/RHI/DirectX/Sources/Methane/Graphics/DirectX/RenderContext.cpp +++ b/Modules/Graphics/RHI/DirectX/Sources/Methane/Graphics/DirectX/RenderContext.cpp @@ -95,7 +95,7 @@ void RenderContext::WaitForGpu(WaitFor wait_for) default: META_UNEXPECTED(wait_for); } - GetDirectDefaultCommandQueue(cl_type).CompleteExecution(frame_buffer_index); + GetDirectDefaultCommandQueue(cl_type).WaitUntilCompleted(frame_buffer_index); } void RenderContext::Release()