/// <summary> /// Frees unmanaged device resources controlled by this instance. /// </summary> public virtual void Dispose() { lock (_fullTextureViewLock) { _fullTextureView?.Dispose(); } DisposeCore(); }
/// <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(); }