From 52d1b5ab7fee4f2c4e63eaf5774d48111becba12 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 8 Sep 2019 14:56:26 -0700 Subject: Added IDeviceContext::Wait() method (updated API version to 240026) --- Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h | 2 ++ Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngineMetal') diff --git a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h index f3d711a2..77c88c9b 100644 --- a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h +++ b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h @@ -152,6 +152,8 @@ public: virtual void SignalFence(IFence* pFence, Uint64 Value)override final; + virtual void Wait(IFence* pFence, Uint64 Value)override final; + private: }; diff --git a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm index 978fccf7..bd975afe 100644 --- a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm +++ b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm @@ -374,7 +374,15 @@ namespace Diligent VERIFY(!m_bIsDeferred, "Fence can only be signalled from immediate context"); LOG_ERROR_MESSAGE("DeviceContextMtlImpl::SignalFence() is not implemented"); - }; + } + + void DeviceContextD3D11Impl::Wait(IFence* pFence, Uint64 Value) + { + VERIFY(!m_bIsDeferred, "Fence can only be waited from immediate context"); + Flush(); + + LOG_ERROR_MESSAGE("DeviceContextMtlImpl::Wait() is not implemented"); + } void DeviceContextMtlImpl::TransitionResourceStates(Uint32 BarrierCount, StateTransitionDesc* pResourceBarriers) { -- cgit v1.2.3