@@ -28,6 +28,7 @@ DirectX 12 specialization of the resource barriers.
2828#include < Methane/Checks.hpp>
2929
3030#include < directx/d3dx12_barriers.h>
31+ #include < ranges>
3132
3233namespace Methane ::Graphics::Rhi
3334{
@@ -142,7 +143,7 @@ bool ResourceBarriers::Remove(const Barrier::Id& id)
142143
143144 const D3D12_RESOURCE_BARRIER_TYPE native_barrier_type = GetNativeBarrierType (id.GetType ());
144145 const ID3D12Resource* native_resource_ptr = dynamic_cast <const IResource&>(id.GetResource ()).GetNativeResource ();
145- const auto native_resource_barrier_it = std::find_if (m_native_resource_barriers. begin (), m_native_resource_barriers. end () ,
146+ const auto native_resource_barrier_it = std::ranges:: find_if (m_native_resource_barriers,
146147 GetNativeResourceBarrierPredicate (native_barrier_type, native_resource_ptr));
147148 META_CHECK_TRUE_DESCR (native_resource_barrier_it != m_native_resource_barriers.end (), " can not find DX resource barrier to update" );
148149 m_native_resource_barriers.erase (native_resource_barrier_it);
@@ -169,7 +170,7 @@ void ResourceBarriers::UpdateNativeResourceBarrier(const Barrier::Id& id, const
169170 META_FUNCTION_TASK ();
170171 const D3D12_RESOURCE_BARRIER_TYPE native_barrier_type = GetNativeBarrierType (id.GetType ());
171172 const ID3D12Resource* native_resource_ptr = dynamic_cast <const IResource&>(id.GetResource ()).GetNativeResource ();
172- const auto native_resource_barrier_it = std::find_if (m_native_resource_barriers. begin (), m_native_resource_barriers. end () ,
173+ const auto native_resource_barrier_it = std::ranges:: find_if (m_native_resource_barriers,
173174 GetNativeResourceBarrierPredicate (native_barrier_type, native_resource_ptr));
174175 META_CHECK_TRUE_DESCR (native_resource_barrier_it != m_native_resource_barriers.end (), " can not find DX resource barrier to update" );
175176
0 commit comments