diff options
Diffstat (limited to 'Graphics/GraphicsEngineNextGenBase')
| -rw-r--r-- | Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.h b/Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.h index f492e527..aaf1a615 100644 --- a/Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.h +++ b/Graphics/GraphicsEngineNextGenBase/include/DeviceContextNextGenBase.h @@ -61,13 +61,18 @@ public: protected: // Should be called at the end of FinishFrame() - void EndFrame() + template<typename RenderDeviceImplType> + void EndFrame(RenderDeviceImplType& RenderDeviceImpl) { if (m_bIsDeferred) { // For deferred context, reset submitted cmd queue mask m_SubmittedBuffersCmdQueueMask = 0; } + else + { + RenderDeviceImpl.FlushStaleResources(m_CommandQueueId); + } Atomics::AtomicIncrement(m_ContextFrameNumber); } |
