public void Dispose()
 {
     Marshal.FreeHGlobal(NativePointer->SetLayouts);
     MemUtil.Free((IntPtr)NativePointer);
     NativePointer = null;
     GC.SuppressFinalize(this);
 }
 public DescriptorSetAllocateInfo()
 {
     NativePointer        = (Unmanaged.DescriptorSetAllocateInfo *)MemUtil.Alloc(typeof(Unmanaged.DescriptorSetAllocateInfo));
     NativePointer->SType = StructureType.DescriptorSetAllocateInfo;
 }