5 return *plStaticCast<const T*>(m_pCurrent->m_pRenderData);
11 return plStaticCast<const T*>(m_pCurrent->m_pRenderData);
17 return plStaticCast<const T*>(m_pCurrent->m_pRenderData);
25 if (m_Filter.IsValid())
27 while (m_pCurrent < m_pEnd && m_Filter(m_pCurrent->m_pRenderData))
37 return m_pCurrent < m_pEnd;
50 const SortableRenderData* pCurrent = pStart;
51 if (m_Filter.IsValid())
53 while (pCurrent < pEnd && m_Filter(pCurrent->m_pRenderData))
59 m_pCurrent = pCurrent;
64PL_ALWAYS_INLINE plUInt32 plRenderDataBatch::GetCount()
const
70PL_FORCE_INLINE
const T* plRenderDataBatch::GetFirstData()
const
73 return it.IsValid() ? (
const T*)it : nullptr;
80 return Iterator<T>(m_Data.
GetPtr() + uiStartIndex, m_Data.
GetPtr() + uiEndIndex, m_Filter);
85PL_ALWAYS_INLINE plUInt32 plRenderDataBatchList::GetBatchCount()
const
90PL_FORCE_INLINE
plRenderDataBatch plRenderDataBatchList::GetBatch(plUInt32 uiIndex)
const
93 batch.m_Filter = m_Filter;
PL_ALWAYS_INLINE plUInt32 GetCount() const
Returns the number of elements in the array.
Definition ArrayPtr.h:142
PL_ALWAYS_INLINE PointerType GetPtr() const
Returns the pointer to the array.
Definition ArrayPtr.h:118
Definition RenderDataBatch.h:24
Definition RenderDataBatch.h:6
constexpr PL_ALWAYS_INLINE T Min(T f1, T f2)
Returns the smaller value, f1 or f2.
Definition Math_inl.h:27