From a78add37a57b51d80ef2fd21a7a0799ba73dd937 Mon Sep 17 00:00:00 2001 From: assiduous Date: Thu, 23 Jul 2020 15:24:54 -0700 Subject: Added Render pass interface stub --- Graphics/GraphicsEngineMetal/include/RenderDeviceMtlImpl.h | 2 ++ Graphics/GraphicsEngineMetal/src/RenderDeviceMtlImpl.mm | 13 +++++++++++++ 2 files changed, 15 insertions(+) (limited to 'Graphics/GraphicsEngineMetal') diff --git a/Graphics/GraphicsEngineMetal/include/RenderDeviceMtlImpl.h b/Graphics/GraphicsEngineMetal/include/RenderDeviceMtlImpl.h index 856795af..1a5693bb 100644 --- a/Graphics/GraphicsEngineMetal/include/RenderDeviceMtlImpl.h +++ b/Graphics/GraphicsEngineMetal/include/RenderDeviceMtlImpl.h @@ -61,6 +61,8 @@ public: virtual void CreateQuery(const QueryDesc& Desc, IQuery** ppQuery) override final; + virtual void CreateRenderPass(const RenderPassDesc& Desc, IRenderPass** ppRenderPass) override final; + virtual void ReleaseStaleResources(bool ForceRelease = false) override final {} virtual void IdleGPU() override final; diff --git a/Graphics/GraphicsEngineMetal/src/RenderDeviceMtlImpl.mm b/Graphics/GraphicsEngineMetal/src/RenderDeviceMtlImpl.mm index 82783328..b137c0f6 100644 --- a/Graphics/GraphicsEngineMetal/src/RenderDeviceMtlImpl.mm +++ b/Graphics/GraphicsEngineMetal/src/RenderDeviceMtlImpl.mm @@ -184,6 +184,19 @@ void RenderDeviceMtlImpl::CreateQuery(const QueryDesc& Desc, IQuery** ppQuery) ); } +void RenderDeviceMtlImpl::CreateRenderPass(const RenderPassDesc& Desc, IRenderPass** ppRenderPass) +{ +// CreateDeviceObject( "RenderPass", Desc, ppRenderPass, +// [&]() +// { +// RenderPassMtlImpl* pRenderPassMtl( NEW_RC_OBJ(m_RenderPassAllocator, "RenderPassMtlImpl instance", RenderPassMtlImpl) +// (this, Desc) ); +// pRenderPassMtl->RenderPassInterface( IID_RenderPass, reinterpret_cast(ppRenderPass) ); +// OnCreateDeviceObject( pRenderPassMtl ); +// } +// ); +} + void RenderDeviceMtlImpl::IdleGPU() { LOG_ERROR_MESSAGE("RenderDeviceMtlImpl::IdleGPU() is not implemented"); -- cgit v1.2.3