From 812fc38d1b0957ed96d93e023b7322d65c5d3f5d Mon Sep 17 00:00:00 2001 From: assiduous Date: Sat, 1 Aug 2020 18:18:48 -0700 Subject: Updated EndRenderPass to optionally update resource states --- Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h | 2 +- Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Graphics/GraphicsEngineMetal') 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"); } -- cgit v1.2.3