TerraFX.Interop.DirectX.D3D12MA_MUTEX._ctor C# (CSharp) Method

_ctor() public static method

public static _ctor ( D3D12MA_MUTEX &mutex ) : void
mutex D3D12MA_MUTEX
return void
        public static void _ctor(ref D3D12MA_MUTEX mutex)
        {
            mutex.m_Mutex = CreateMutex(null, 0, null);
        }

Usage Example

 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);
 }