Exemple #1
0
        /// <summary>
        /// Frees unmanaged device resources controlled by this instance.
        /// </summary>
        public virtual void Dispose()
        {
            lock (_fullTextureViewLock)
            {
                _fullTextureView?.Dispose();
            }

            DisposeCore();
        }
Exemple #2
0
 /// <summary>
 /// Frees all graphics resources used by the renderer.
 /// </summary>
 public void Dispose()
 {
     _vertexBuffer.Dispose();
     _indexBuffer.Dispose();
     _projMatrixBuffer.Dispose();
     _fontTexture.Dispose();
     _fontTextureView.Dispose();
     _vertexShader.Dispose();
     _fragmentShader.Dispose();
     _layout.Dispose();
     _pipeline.Dispose();
     _resourceSet.Dispose();
 }