From a3f6a3fd03ce5ce6b785fae70c7c890eb6f8fb7c Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 4 Oct 2018 09:50:09 -0700 Subject: Added ReleaseStaleResources() to IRenderDevice interface + a bunch of minor chnages --- Graphics/GraphicsEngine/interface/RenderDevice.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/RenderDevice.h b/Graphics/GraphicsEngine/interface/RenderDevice.h index 6f0b8c63..f48c08f6 100644 --- a/Graphics/GraphicsEngine/interface/RenderDevice.h +++ b/Graphics/GraphicsEngine/interface/RenderDevice.h @@ -183,6 +183,13 @@ public: /// considerably slower than GetTextureFormatInfo(). If you do not require /// extended information, call GetTextureFormatInfo() instead. virtual const TextureFormatInfoExt& GetTextureFormatInfoExt( TEXTURE_FORMAT TexFormat ) = 0; + + /// Purges device release queues and releases all stale resources. + /// This method is automatically called by ISwapChain::Present(). + /// \param [in] ForceRelease - Forces release of all objects. Use this option with + /// great care only if you are sure the resources are not + /// in use by the GPU (such as when the device has just been idled). + virtual void ReleaseStaleResources(bool ForceRelease = false) = 0; }; } -- cgit v1.2.3