summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineMetal
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineMetal')
-rw-r--r--Graphics/GraphicsEngineMetal/include/RenderDeviceMtlImpl.h2
-rw-r--r--Graphics/GraphicsEngineMetal/src/RenderDeviceMtlImpl.mm13
2 files changed, 15 insertions, 0 deletions
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<IObject**>(ppRenderPass) );
+// OnCreateDeviceObject( pRenderPassMtl );
+// }
+// );
+}
+
void RenderDeviceMtlImpl::IdleGPU()
{
LOG_ERROR_MESSAGE("RenderDeviceMtlImpl::IdleGPU() is not implemented");