From d06553e2b4700aa026acd4445a598eadf10dfb35 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 8 Sep 2019 17:42:51 -0700 Subject: Added IDeviceContext::WaitForIdle() method (updated API version to 240028) --- Graphics/GraphicsEngine/interface/APIInfo.h | 2 +- Graphics/GraphicsEngine/interface/DeviceContext.h | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/APIInfo.h b/Graphics/GraphicsEngine/interface/APIInfo.h index 82ff31e0..d4215993 100644 --- a/Graphics/GraphicsEngine/interface/APIInfo.h +++ b/Graphics/GraphicsEngine/interface/APIInfo.h @@ -26,7 +26,7 @@ /// \file /// Diligent API information -#define DILIGENT_API_VERSION 240027 +#define DILIGENT_API_VERSION 240028 #include "../../../Primitives/interface/BasicTypes.h" diff --git a/Graphics/GraphicsEngine/interface/DeviceContext.h b/Graphics/GraphicsEngine/interface/DeviceContext.h index ea40f058..b3b9dbb7 100644 --- a/Graphics/GraphicsEngine/interface/DeviceContext.h +++ b/Graphics/GraphicsEngine/interface/DeviceContext.h @@ -821,6 +821,15 @@ public: virtual void WaitForFence(IFence* pFence, Uint64 Value, bool FlushContext) = 0; + /// Submits all outstanding commands for execution to the GPU and waits until they are complete. + + /// \remarks Only immediate contexts can be idled.\n + /// The methods implicitly flushes the context (see IDeviceContext::Flush()), so an + /// application must explicitly reset the PSO and bind all required shader resources after + /// idling the context.\n + virtual void WaitForIdle() = 0; + + /// Submits all pending commands in the context for execution to the command queue. /// \remarks Only immediate contexts can be flushed.\n -- cgit v1.2.3