Esempio n. 1
0
        /// <summary>
        /// Disposes the host buffer.
        /// </summary>
        public void Dispose()
        {
            _memoryTrackingGranular?.Dispose();
            _memoryTracking?.Dispose();

            DisposeData();
        }
Esempio n. 2
0
        /// <summary>
        /// Disposes the host buffer.
        /// </summary>
        public void Dispose()
        {
            _context.Renderer.DeleteBuffer(Handle);

            _memoryTrackingGranular?.Dispose();
            _memoryTracking?.Dispose();
        }
Esempio n. 3
0
        /// <summary>
        /// Disposes the host buffer.
        /// </summary>
        public void Dispose()
        {
            _modifiedRanges?.Clear();

            _memoryTrackingGranular?.Dispose();
            _memoryTracking?.Dispose();

            _context.Renderer.DeleteBuffer(Handle);
        }
Esempio n. 4
0
        /// <summary>
        /// Performs the disposal of all resources stored on the pool.
        /// It's an error to try using the pool after disposal.
        /// </summary>
        public virtual void Dispose()
        {
            if (Items != null)
            {
                for (int index = 0; index < Items.Length; index++)
                {
                    Delete(Items[index]);
                }

                Items = null;
            }
            _memoryTracking.Dispose();
        }