diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-04-24 03:55:17 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-04-24 03:55:17 +0000 |
| commit | 5cc8a3953c7986bec781d7c1f8a014195ca4bf6b (patch) | |
| tree | cd5426ebffc0af628236d45ed70e25969065cab5 /Graphics/GraphicsEngineD3D12 | |
| parent | Merge pull request #128 from Dinolek/master (diff) | |
| download | DiligentCore-5cc8a3953c7986bec781d7c1f8a014195ca4bf6b.tar.gz DiligentCore-5cc8a3953c7986bec781d7c1f8a014195ca4bf6b.zip | |
Added surface pretransform parameter to swap chain desc (API 240057)
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/include/SwapChainD3D12Impl.hpp | 2 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngineD3D12/include/SwapChainD3D12Impl.hpp b/Graphics/GraphicsEngineD3D12/include/SwapChainD3D12Impl.hpp index 2f32c6d7..7a0c78db 100644 --- a/Graphics/GraphicsEngineD3D12/include/SwapChainD3D12Impl.hpp +++ b/Graphics/GraphicsEngineD3D12/include/SwapChainD3D12Impl.hpp @@ -57,7 +57,7 @@ public: virtual void DILIGENT_CALL_TYPE Present(Uint32 SyncInterval) override final; /// Implementation of ISwapChain::Resize() in Direct3D12 backend. - virtual void DILIGENT_CALL_TYPE Resize(Uint32 NewWidth, Uint32 NewHeight) override final; + virtual void DILIGENT_CALL_TYPE Resize(Uint32 NewWidth, Uint32 NewHeight, SURFACE_TRANSFORM NewPreTransform) override final; /// Implementation of ISwapChainD3D12::GetDXGISwapChain(). virtual IDXGISwapChain* DILIGENT_CALL_TYPE GetDXGISwapChain() override final { return m_pSwapChain; } diff --git a/Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp index 1703f4e9..301f8a1b 100644 --- a/Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/SwapChainD3D12Impl.cpp @@ -231,9 +231,9 @@ void SwapChainD3D12Impl::UpdateSwapChain(bool CreateNew) } } -void SwapChainD3D12Impl::Resize(Uint32 NewWidth, Uint32 NewHeight) +void SwapChainD3D12Impl::Resize(Uint32 NewWidth, Uint32 NewHeight, SURFACE_TRANSFORM NewPreTransform) { - if (TSwapChainBase::Resize(NewWidth, NewHeight)) + if (TSwapChainBase::Resize(NewWidth, NewHeight, NewPreTransform)) { UpdateSwapChain(false); } |
