private void DisposeTextureCache() { if (null == TextureCache) { return; } foreach (var texture in TextureCache.Values) { texture?.Dispose(); } TextureCache.Clear(); }
public void Dispose() { CheckersShader.Dispose(); Vao.Dispose(); samplerLinear.Dispose(); samplerLinearMip.Dispose(); samplerNearest.Dispose(); samplerNearestMip.Dispose(); TextureCache.Clear(); GetPixelShader.Dispose(); SrgbShader.Dispose(); ExportShader.Dispose(); LinearMaxStatistics.Dispose(); SrgbMaxStatistics.Dispose(); LinearMinStatistics.Dispose(); SrgbMinStatistics.Dispose(); }