From b875435c82aa5efbea55ee17719c4a57b171a811 Mon Sep 17 00:00:00 2001 From: assiduous Date: Fri, 31 Jul 2020 23:31:05 -0700 Subject: Base implementation of BeginRenderPass/NextSubpass/EndRenderPass methods --- Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h | 4 ++++ Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm | 3 +++ 2 files changed, 7 insertions(+) (limited to 'Graphics/GraphicsEngineMetal') diff --git a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h index 93532df9..0bfff2b3 100644 --- a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h +++ b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h @@ -33,6 +33,8 @@ #include "TextureMtlImpl.h" #include "PipelineStateMtlImpl.h" #include "QueryMtlImpl.h" +#include "FramebufferMtlImpl.h" +#include "RenderPassMtlImpl.h" namespace Diligent { @@ -46,6 +48,8 @@ struct DeviceContextMtlImplTraits using PipelineStateType = PipelineStateMtlImpl; using DeviceType = RenderDeviceMtlImpl; using QueryType = QueryMtlImpl; + using FramebufferType = FramebufferMtlImpl; + using RenderPassType = RenderPassMtlImpl; }; /// Implementation of the Diligent::IDeviceContextMtl interface diff --git a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm index e2a1362d..abfa15ba 100644 --- a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm +++ b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm @@ -373,16 +373,19 @@ namespace Diligent void DeviceContextMtlImpl::BeginRenderPass(const BeginRenderPassAttribs& Attribs) { + TDeviceContextBase::BeginRenderPass(Attribs); LOG_ERROR_MESSAGE("DeviceContextMtlImpl::BeginRenderPass() is not implemented"); } void DeviceContextMtlImpl::NextSubpass() { + TDeviceContextBase::NextSubpass(); LOG_ERROR_MESSAGE("DeviceContextMtlImpl::NextSubpass() is not implemented"); } void DeviceContextMtlImpl::EndRenderPass() { + TDeviceContextBase::EndRenderPass(); LOG_ERROR_MESSAGE("DeviceContextMtlImpl::EndRenderPass() is not implemented"); } -- cgit v1.2.3