summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
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/GraphicsEngineD3D11
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/GraphicsEngineD3D11')
-rw-r--r--Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.h2
-rw-r--r--Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.h b/Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.h
index 5f5fe4fe..f1ea1a4d 100644
--- a/Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.h
+++ b/Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.h
@@ -48,7 +48,7 @@ public:
virtual void QueryInterface( const Diligent::INTERFACE_ID &IID, IObject **ppInterface )override final;
- virtual void Present()override final;
+ virtual void Present(Uint32 SyncInterval)override final;
virtual void Resize( Uint32 NewWidth, Uint32 NewHeight )override final;
virtual IDXGISwapChain *GetDXGISwapChain()override final{ return m_pSwapChain; }
diff --git a/Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp b/Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp
index ca5faf08..5229b504 100644
--- a/Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp
+++ b/Graphics/GraphicsEngineD3D11/src/SwapChainD3D11Impl.cpp
@@ -95,9 +95,8 @@ void SwapChainD3D11Impl::CreateRTVandDSV()
IMPLEMENT_QUERY_INTERFACE( SwapChainD3D11Impl, IID_SwapChainD3D11, TSwapChainBase )
-void SwapChainD3D11Impl::Present()
+void SwapChainD3D11Impl::Present(Uint32 SyncInterval)
{
- UINT SyncInterval = 0;
#if PLATFORM_UNIVERSAL_WINDOWS
SyncInterval = 1; // Interval 0 is not supported on Windows Phone
#endif