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); }
public SubmitInfo() { NativePointer = (Unmanaged.SubmitInfo *)MemUtil.Alloc(typeof(Unmanaged.SubmitInfo)); NativePointer->SType = StructureType.SubmitInfo; }