public readonly bool ValidateFreeSuballocationList()
        {
            ulong lastSize = 0;

            for (nuint i = 0, count = m_FreeSuballocationsBySize.size(); i < count; ++i)
            {
                D3D12MA_List <D3D12MA_Suballocation> .iterator it = *m_FreeSuballocationsBySize[i];

                _ = D3D12MA_VALIDATE(it.Get()->type == D3D12MA_SUBALLOCATION_TYPE_FREE);
                _ = D3D12MA_VALIDATE(it.Get()->size >= MIN_FREE_SUBALLOCATION_SIZE_TO_REGISTER);
                _ = D3D12MA_VALIDATE(it.Get()->size >= lastSize);

                lastSize = it.Get()->size;
            }

            return(true);
        }
Example #2
0
        public void Dispose()
        {
            for (nuint i = m_Blocks.size(); unchecked (i-- != 0);)
            {
                D3D12MA_DELETE(m_hAllocator->GetAllocs(), m_Blocks[i]->Value);
            }

            m_Blocks.Dispose();
        }
 public readonly nuint GetLength() => m_Data.size();