summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineMetal
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-08-02 01:18:48 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-02 19:21:45 +0000
commit812fc38d1b0957ed96d93e023b7322d65c5d3f5d (patch)
tree12e83148649718ae8dce97ff6ef027cdcb51551e /Graphics/GraphicsEngineMetal
parentFixed build error (diff)
downloadDiligentCore-812fc38d1b0957ed96d93e023b7322d65c5d3f5d.tar.gz
DiligentCore-812fc38d1b0957ed96d93e023b7322d65c5d3f5d.zip
Updated EndRenderPass to optionally update resource states
Diffstat (limited to 'Graphics/GraphicsEngineMetal')
-rw-r--r--Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h2
-rw-r--r--Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm4
2 files changed, 3 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h
index 0bfff2b3..b5a7feec 100644
--- a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h
+++ b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h
@@ -100,7 +100,7 @@ public:
virtual void NextSubpass() override final;
- virtual void EndRenderPass() override final;
+ virtual void EndRenderPass(bool UpdateResourceStates) override final;
virtual void Draw(const DrawAttribs& Attribs) override final;
virtual void DrawIndexed(const DrawIndexedAttribs& Attribs) override final;
diff --git a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm
index abfa15ba..ff08c1bb 100644
--- a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm
+++ b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm
@@ -383,9 +383,9 @@ namespace Diligent
LOG_ERROR_MESSAGE("DeviceContextMtlImpl::NextSubpass() is not implemented");
}
- void DeviceContextMtlImpl::EndRenderPass()
+ void DeviceContextMtlImpl::EndRenderPass(bool UpdateResourceStates)
{
- TDeviceContextBase::EndRenderPass();
+ TDeviceContextBase::EndRenderPass(UpdateResourceStates);
LOG_ERROR_MESSAGE("DeviceContextMtlImpl::EndRenderPass() is not implemented");
}