diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-10-04 16:50:09 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-10-04 16:50:09 +0000 |
| commit | a3f6a3fd03ce5ce6b785fae70c7c890eb6f8fb7c (patch) | |
| tree | 8aa9b14d95131ffb70537dc23271740eca3097af /Graphics/GraphicsEngine | |
| parent | Setting debug names of D3D11 objects (diff) | |
| download | DiligentCore-a3f6a3fd03ce5ce6b785fae70c7c890eb6f8fb7c.tar.gz DiligentCore-a3f6a3fd03ce5ce6b785fae70c7c890eb6f8fb7c.zip | |
Added ReleaseStaleResources() to IRenderDevice interface + a bunch of minor chnages
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/interface/RenderDevice.h | 7 |
1 files changed, 7 insertions, 0 deletions
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; }; } |
