public static void _ctor(ref D3D12MA_MUTEX mutex)
 {
     mutex.m_Mutex = CreateMutex(null, 0, null);
 }
 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);
 }
Exemplo n.º 3
0
 public D3D12MA_MutexLock([NativeTypeName("D3D12MA_MUTEX&")] ref D3D12MA_MUTEX mutex, bool useMutex = true)
     : this((D3D12MA_MUTEX *)Unsafe.AsPointer(ref mutex), useMutex)
 {
 }