diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-09-08 21:56:26 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-09-08 21:56:26 +0000 |
| commit | 52d1b5ab7fee4f2c4e63eaf5774d48111becba12 (patch) | |
| tree | 9eac4952a2eb4765352270cc7993fbefec83c6ce /Graphics/GraphicsEngineMetal | |
| parent | Updated constructor of RefCountedObject to forward arguments to its base class (diff) | |
| download | DiligentCore-52d1b5ab7fee4f2c4e63eaf5774d48111becba12.tar.gz DiligentCore-52d1b5ab7fee4f2c4e63eaf5774d48111becba12.zip | |
Added IDeviceContext::Wait() method (updated API version to 240026)
Diffstat (limited to 'Graphics/GraphicsEngineMetal')
| -rw-r--r-- | Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h | 2 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm | 10 |
2 files changed, 11 insertions, 1 deletions
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) { |
