Beispiel #1
0
 public void Dispose()
 {
     Marshal.FreeHGlobal(NativePointer->QueueFamilyIndices);
     MemUtil.Free((IntPtr)NativePointer);
     NativePointer = null;
     GC.SuppressFinalize(this);
 }
Beispiel #2
0
 public ImageCreateInfo()
 {
     NativePointer        = (Unmanaged.ImageCreateInfo *)MemUtil.Alloc(typeof(Unmanaged.ImageCreateInfo));
     NativePointer->SType = StructureType.ImageCreateInfo;
 }