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