summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineMetal
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-07-23 22:24:54 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-02 19:21:32 +0000
commita78add37a57b51d80ef2fd21a7a0799ba73dd937 (patch)
tree76bf8bf0afdc1bc872cdda0bcbcf3e973bcbdaa9 /Graphics/GraphicsEngineMetal
parentSwitched to using Volk on Windows (https://github.com/DiligentGraphics/Dilige... (diff)
downloadDiligentCore-a78add37a57b51d80ef2fd21a7a0799ba73dd937.tar.gz
DiligentCore-a78add37a57b51d80ef2fd21a7a0799ba73dd937.zip
Added Render pass interface stub
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");