summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineMetal
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-04-24 03:55:17 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-04-24 03:55:17 +0000
commit5cc8a3953c7986bec781d7c1f8a014195ca4bf6b (patch)
treecd5426ebffc0af628236d45ed70e25969065cab5 /Graphics/GraphicsEngineMetal
parentMerge pull request #128 from Dinolek/master (diff)
downloadDiligentCore-5cc8a3953c7986bec781d7c1f8a014195ca4bf6b.tar.gz
DiligentCore-5cc8a3953c7986bec781d7c1f8a014195ca4bf6b.zip
Added surface pretransform parameter to swap chain desc (API 240057)
Diffstat (limited to 'Graphics/GraphicsEngineMetal')
-rw-r--r--Graphics/GraphicsEngineMetal/include/SwapChainMtlImpl.h2
-rw-r--r--Graphics/GraphicsEngineMetal/src/SwapChainMtlImpl.mm4
2 files changed, 3 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngineMetal/include/SwapChainMtlImpl.h b/Graphics/GraphicsEngineMetal/include/SwapChainMtlImpl.h
index a868dd32..0cadd44b 100644
--- a/Graphics/GraphicsEngineMetal/include/SwapChainMtlImpl.h
+++ b/Graphics/GraphicsEngineMetal/include/SwapChainMtlImpl.h
@@ -48,7 +48,7 @@ public:
virtual void QueryInterface(const Diligent::INTERFACE_ID& IID, IObject** ppInterface) override final;
virtual void Present(Uint32 SyncInterval) override final;
- virtual void Resize(Uint32 NewWidth, Uint32 NewHeight) override final;
+ virtual void Resize(Uint32 NewWidth, Uint32 NewHeight, SURFACE_TRANSFORM NewPreTransform) override final;
virtual void SetFullscreenMode(const DisplayModeAttribs& DisplayMode) override final;
diff --git a/Graphics/GraphicsEngineMetal/src/SwapChainMtlImpl.mm b/Graphics/GraphicsEngineMetal/src/SwapChainMtlImpl.mm
index 87ba6a6b..7532f5cd 100644
--- a/Graphics/GraphicsEngineMetal/src/SwapChainMtlImpl.mm
+++ b/Graphics/GraphicsEngineMetal/src/SwapChainMtlImpl.mm
@@ -50,9 +50,9 @@ void SwapChainMtlImpl::Present(Uint32 SyncInterval)
}
-void SwapChainMtlImpl::Resize( Uint32 NewWidth, Uint32 NewHeight )
+void SwapChainMtlImpl::Resize( Uint32 NewWidth, Uint32 NewHeight, SURFACE_TRANSFORM NewPreTransform )
{
- if( TSwapChainBase::Resize(NewWidth, NewHeight) )
+ if( TSwapChainBase::Resize(NewWidth, NewHeight, NewPreTransform) )
{
LOG_ERROR_MESSAGE("SwapChainMtlImpl::Resize() is not implemented");
}