From 5cc8a3953c7986bec781d7c1f8a014195ca4bf6b Mon Sep 17 00:00:00 2001 From: assiduous Date: Thu, 23 Apr 2020 20:55:17 -0700 Subject: Added surface pretransform parameter to swap chain desc (API 240057) --- Graphics/GraphicsEngineMetal/include/SwapChainMtlImpl.h | 2 +- Graphics/GraphicsEngineMetal/src/SwapChainMtlImpl.mm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Graphics/GraphicsEngineMetal') 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"); } -- cgit v1.2.3