From a85347704ba95234da16298f28ba2b431c4f569c Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 8 Sep 2019 18:04:58 -0700 Subject: Added IRenderDevice::IdleGPU() method (updated API version to 240029) --- Graphics/GraphicsEngineMetal/include/RenderDeviceMtlImpl.h | 2 ++ Graphics/GraphicsEngineMetal/src/RenderDeviceMtlImpl.mm | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'Graphics/GraphicsEngineMetal') diff --git a/Graphics/GraphicsEngineMetal/include/RenderDeviceMtlImpl.h b/Graphics/GraphicsEngineMetal/include/RenderDeviceMtlImpl.h index 0b10967f..5b49c291 100644 --- a/Graphics/GraphicsEngineMetal/include/RenderDeviceMtlImpl.h +++ b/Graphics/GraphicsEngineMetal/include/RenderDeviceMtlImpl.h @@ -61,6 +61,8 @@ public: virtual void ReleaseStaleResources(bool ForceRelease = false)override final {} + virtual void IdleGPU()override final; + size_t GetCommandQueueCount()const { return 1; } Uint64 GetCommandQueueMask()const { return Uint64{1};} diff --git a/Graphics/GraphicsEngineMetal/src/RenderDeviceMtlImpl.mm b/Graphics/GraphicsEngineMetal/src/RenderDeviceMtlImpl.mm index 181314db..42783161 100644 --- a/Graphics/GraphicsEngineMetal/src/RenderDeviceMtlImpl.mm +++ b/Graphics/GraphicsEngineMetal/src/RenderDeviceMtlImpl.mm @@ -171,4 +171,9 @@ void RenderDeviceMtlImpl::CreateFence(const FenceDesc& Desc, IFence** ppFence) ); } +void RenderDeviceMtlImpl::IdleGPU() +{ + LOG_ERROR_MESSAGE("RenderDeviceMtlImpl::IdleGPU() is not implemented"); +} + } -- cgit v1.2.3