From 8798aa2e94602372a61c362d5c3f288cc07388c9 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sun, 26 Jul 2020 19:16:18 -0700 Subject: Added BeginRenderPass, NextSubpass, and EndRenderPass device context methods --- .../GraphicsEngineMetal/include/DeviceContextMtlImpl.h | 6 ++++++ Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm | 15 +++++++++++++++ 2 files changed, 21 insertions(+) (limited to 'Graphics/GraphicsEngineMetal') diff --git a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h index be12a4cd..93532df9 100644 --- a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h +++ b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h @@ -92,6 +92,12 @@ public: ITextureView* pDepthStencil, RESOURCE_STATE_TRANSITION_MODE StateTransitionMode) override final; + virtual void BeginRenderPass(const BeginRenderPassAttribs& Attribs) override final; + + virtual void NextSubpass() override final; + + virtual void EndRenderPass() override final; + virtual void Draw(const DrawAttribs& Attribs) override final; virtual void DrawIndexed(const DrawIndexedAttribs& Attribs) override final; virtual void DrawIndirect(const DrawIndirectAttribs& Attribs, IBuffer* pAttribsBuffer) override final; diff --git a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm index 63fba7c3..e2a1362d 100644 --- a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm +++ b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm @@ -371,6 +371,21 @@ namespace Diligent } } + void DeviceContextMtlImpl::BeginRenderPass(const BeginRenderPassAttribs& Attribs) + { + LOG_ERROR_MESSAGE("DeviceContextMtlImpl::BeginRenderPass() is not implemented"); + } + + void DeviceContextMtlImpl::NextSubpass() + { + LOG_ERROR_MESSAGE("DeviceContextMtlImpl::NextSubpass() is not implemented"); + } + + void DeviceContextMtlImpl::EndRenderPass() + { + LOG_ERROR_MESSAGE("DeviceContextMtlImpl::EndRenderPass() is not implemented"); + } + void DeviceContextMtlImpl::FinishCommandList(ICommandList **ppCommandList) { LOG_ERROR_MESSAGE("DeviceContextMtlImpl::FinishCommandList() is not implemented"); -- cgit v1.2.3