Beispiel #1
0
        private static void DisposeResources()
        {
            text.Dispose();
            text2.Dispose();
            textRenderer.Dispose();

            _pipeline.Dispose();
            textShader.Dispose();
            _commandList.Dispose();
            _graphicsDevice.Dispose();
        }
Beispiel #2
0
 /// <summary>
 /// Releases unmanaged and - optionally - managed resources.
 /// </summary>
 public void Dispose()
 {
     _lineShader.Dispose();
     _textShader.Dispose();
 }