Esempio n. 1
0
 public void Dispose()
 {
     Marshal.FreeHGlobal(NativePointer->WaitSemaphores);
     Marshal.FreeHGlobal(NativePointer->WaitDstStageMask);
     Marshal.FreeHGlobal(NativePointer->CommandBuffers);
     Marshal.FreeHGlobal(NativePointer->SignalSemaphores);
     MemUtil.Free((IntPtr)NativePointer);
     NativePointer = null;
     GC.SuppressFinalize(this);
 }
Esempio n. 2
0
 public SubmitInfo()
 {
     NativePointer        = (Unmanaged.SubmitInfo *)MemUtil.Alloc(typeof(Unmanaged.SubmitInfo));
     NativePointer->SType = StructureType.SubmitInfo;
 }