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