Exemplo n.º 1
0
        internal void AddStats([NativeTypeName("Stats&")] D3D12MA_Stats *inoutStats)
        {
            D3D12MA_StatInfo poolStatInfo = default;

            CalculateStats(&poolStatInfo);

            AddStatInfo(ref inoutStats->Total, ref poolStatInfo);
            AddStatInfo(ref inoutStats->HeapType[(int)HeapTypeToIndex(m_Desc.HeapProperties.Type)], ref poolStatInfo);
        }
 /// <summary>Retrieves statistics from the current state of the allocator.</summary>
 public void CalculateStats(D3D12MA_Stats *pStats)
 {
     D3D12MA_ASSERT((D3D12MA_DEBUG_LEVEL > 0) && (pStats != null));
     using var debugGlobalMutexLock = D3D12MA_DEBUG_GLOBAL_MUTEX_LOCK();
     m_Pimpl->CalculateStats(pStats);
 }
Exemplo n.º 3
0
 public void AddStats([NativeTypeName("Stats&")] D3D12MA_Stats *outStats)
 {
     uint heapTypeIndex             = HeapTypeToIndex(m_HeapType);
     ref D3D12MA_StatInfo pStatInfo = ref outStats->HeapType[(int)heapTypeIndex];