From 9e62ec0d4b9c7ea9d6fc3d19b9d29481dffb697c Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 9 Nov 2019 22:17:46 -0800 Subject: Added 'ResolveTextureSubresource' device context command (API Version 240041) (not yet implemented in OpenGL backend) --- Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h | 4 ++++ Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngineMetal') diff --git a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h index e64460df..b15a3adb 100644 --- a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h +++ b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h @@ -151,6 +151,10 @@ public: virtual void TransitionResourceStates(Uint32 BarrierCount, StateTransitionDesc* pResourceBarriers)override final; + virtual void ResolveTextureSubresource(ITexture* pSrcTexture, + ITexture* pDstTexture, + const ResolveTextureSubresourceAttribs& ResolveAttribs)override final; + void FinishCommandList(class ICommandList** ppCommandList)override final; virtual void ExecuteCommandList(class ICommandList* pCommandList)override final; diff --git a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm index 0aff2c81..410a6a84 100644 --- a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm +++ b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm @@ -72,9 +72,17 @@ namespace Diligent LOG_ERROR_MESSAGE("DeviceContextMtlImpl::TransitionShaderResources() is not implemented"); } + void DeviceContextMtlImpl::ResolveTextureSubresource(ITexture* pSrcTexture, + ITexture* pDstTexture, + const ResolveTextureSubresourceAttribs& ResolveAttribs) + { + TDeviceContextBase::ResolveTextureSubresource(pSrcTexture, pDstTexture, ResolveAttribs); + LOG_ERROR_MESSAGE("DeviceContextMtlImpl::ResolveTextureSubresource() is not implemented"); + } + void DeviceContextMtlImpl::CommitShaderResources(IShaderResourceBinding* pShaderResourceBinding, RESOURCE_STATE_TRANSITION_MODE StateTransitionMode) { - if (!DeviceContextBase::CommitShaderResources(pShaderResourceBinding, StateTransitionMode, 0 /*Dummy*/)) + if (!TDeviceContextBase::CommitShaderResources(pShaderResourceBinding, StateTransitionMode, 0 /*Dummy*/)) return; LOG_ERROR_MESSAGE("DeviceContextMtlImpl::CommitShaderResources() is not implemented"); -- cgit v1.2.3