private void dispose(bool disposing) { if (!IsDisposed) { if (disposing) { Memory?.Unmap(); Handle?.DestroyBuffer(null); Memory?.Free(); } } IsDisposed = true; }
protected internal override void Destroy() { Handle?.DestroyBuffer(null); Memory?.Free(); }
protected internal override void Destroy() { Memory.Unmap(); Buffer.DestroyBuffer(null); Memory.Free(); }