Beispiel #1
0
 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);
 }
Beispiel #2
0
 public SubpassDescription()
 {
     NativePointer = (Unmanaged.SubpassDescription *)MemUtil.Alloc(typeof(Unmanaged.SubpassDescription));
 }