public void Dispose() { Marshal.FreeHGlobal(NativePointer->InputAttachments); Marshal.FreeHGlobal(NativePointer->ColorAttachments); Marshal.FreeHGlobal(NativePointer->ResolveAttachments); Marshal.FreeHGlobal(NativePointer->PreserveAttachments); MemUtil.Free((IntPtr)NativePointer); NativePointer = null; GC.SuppressFinalize(this); }
public SubpassDescription() { NativePointer = (Unmanaged.SubpassDescription *)MemUtil.Alloc(typeof(Unmanaged.SubpassDescription)); }