From 3883552af7b01aa6699a6a18ba405537dd0968dd Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 6 Dec 2019 18:50:10 -0800 Subject: Added DiligentCoreAPITest --- Graphics/GraphicsEngine/interface/DeviceContext.h | 6 +++--- Graphics/GraphicsEngine/interface/RenderDevice.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/DeviceContext.h b/Graphics/GraphicsEngine/interface/DeviceContext.h index f515ab84..eff88201 100644 --- a/Graphics/GraphicsEngine/interface/DeviceContext.h +++ b/Graphics/GraphicsEngine/interface/DeviceContext.h @@ -1150,9 +1150,9 @@ public: /// Finishes the current frame and releases dynamic resources allocated by the context. - /// For immediate context, this method is called automatically by Present(), but can - /// also be called explicitly. For deferred context, the method must be called by the application to - /// release dynamic resources. The method has some overhead, so it is better to call it once + /// For immediate context, this method is called automatically by ISwapChain::Present() of the primary + /// swap chain, but can also be called explicitly. For deferred contexts, the method must be called by the + /// application to release dynamic resources. The method has some overhead, so it is better to call it once /// per frame, though it can be called with different frequency. Note that unless the GPU is idled, /// the resources may actually be released several frames after the one they were used in last time. /// \note After the call all dynamic resources become invalid and must be written again before the next use. diff --git a/Graphics/GraphicsEngine/interface/RenderDevice.h b/Graphics/GraphicsEngine/interface/RenderDevice.h index c17e5987..af0815dd 100644 --- a/Graphics/GraphicsEngine/interface/RenderDevice.h +++ b/Graphics/GraphicsEngine/interface/RenderDevice.h @@ -184,7 +184,7 @@ public: 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(). + /// This method is automatically called by ISwapChain::Present() of the primary swap chain. /// \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). -- cgit v1.2.3