Beispiel #1
0
        // allocationCallbacks externally owned, must outlive this object.
        public static void _ctor(ref D3D12MA_List <T> pThis, [NativeTypeName("const D3D12MA_ALLOCATION_CALLBACKS&")] D3D12MA_ALLOCATION_CALLBACKS *allocationCallbacks)
        {
            pThis.m_AllocationCallbacks = allocationCallbacks;
            D3D12MA_PoolAllocator <Item> ._ctor(ref pThis.m_ItemAllocator, allocationCallbacks, 128);

            pThis.m_pFront = null;
            pThis.m_pBack  = null;
            pThis.m_Count  = 0;
        }
        // allocationCallbacks externally owned, must outlive this object.
        public static void _ctor(ref D3D12MA_PoolAllocator <T> pThis, [NativeTypeName("D3D12MA_ALLOCATION_CALLBACKS&")] D3D12MA_ALLOCATION_CALLBACKS *allocationCallbacks, [NativeTypeName("UINT")] uint firstBlockCapacity)
        {
            pThis.m_AllocationCallbacks = allocationCallbacks;
            pThis.m_FirstBlockCapacity  = firstBlockCapacity;

            D3D12MA_Vector <ItemBlock> ._ctor(ref pThis.m_ItemBlocks, allocationCallbacks);

            D3D12MA_ASSERT((D3D12MA_DEBUG_LEVEL > 0) && (pThis.m_FirstBlockCapacity > 1));
        }
 public static void _ctor(ref D3D12MA_AllocationObjectAllocator pThis, [NativeTypeName("const D3D12MA_ALLOCATION_CALLBACKS&")] ref D3D12MA_ALLOCATION_CALLBACKS allocationCallbacks)
 {
     D3D12MA_MUTEX._ctor(ref pThis.m_Mutex);
     D3D12MA_PoolAllocator <D3D12MA_Allocation> ._ctor(ref pThis.m_Allocator, (D3D12MA_ALLOCATION_CALLBACKS *)Unsafe.AsPointer(ref allocationCallbacks), 1024);
 }