summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-03-31 23:43:02 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-03-31 23:43:02 +0000
commita8a3940fa4491963048ade02dcb035eaca4b6eb5 (patch)
treea504b665ab7792eb970b8aecc535edbb4d814de4 /Graphics/GraphicsEngineD3D12
parentSome minor updates to d3d swap chain (diff)
downloadDiligentCore-a8a3940fa4491963048ade02dcb035eaca4b6eb5.tar.gz
DiligentCore-a8a3940fa4491963048ade02dcb035eaca4b6eb5.zip
Added sync interval parameter to ISwapChain::Present()
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/include/SwapChainD3D12Impl.h4
-rw-r--r--Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp3
2 files changed, 3 insertions, 4 deletions
diff --git a/Graphics/GraphicsEngineD3D12/include/SwapChainD3D12Impl.h b/Graphics/GraphicsEngineD3D12/include/SwapChainD3D12Impl.h
index 01d814b8..3b1f21a1 100644
--- a/Graphics/GraphicsEngineD3D12/include/SwapChainD3D12Impl.h
+++ b/Graphics/GraphicsEngineD3D12/include/SwapChainD3D12Impl.h
@@ -50,8 +50,8 @@ public:
virtual void QueryInterface( const Diligent::INTERFACE_ID &IID, IObject **ppInterface );
- virtual void Present();
- virtual void Resize( Uint32 NewWidth, Uint32 NewHeight );
+ virtual void Present(Uint32 SyncInterval)override final;
+ virtual void Resize( Uint32 NewWidth, Uint32 NewHeight )override final;
virtual IDXGISwapChain* GetDXGISwapChain()override final{ return m_pSwapChain; }
virtual ITextureViewD3D12* GetCurrentBackBufferRTV()override final;
diff --git a/Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp
index 6078f6a2..8e5beb12 100644
--- a/Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp
@@ -100,9 +100,8 @@ void SwapChainD3D12Impl::InitBuffersAndViews()
IMPLEMENT_QUERY_INTERFACE( SwapChainD3D12Impl, IID_SwapChainD3D12, TSwapChainBase )
-void SwapChainD3D12Impl::Present()
+void SwapChainD3D12Impl::Present(Uint32 SyncInterval)
{
- UINT SyncInterval = 0;
#if PLATFORM_UNIVERSAL_WINDOWS
SyncInterval = 1; // Interval 0 is not supported on Windows Phone
#endif