Exemple #1
0
 private void DisposeTextureCache()
 {
     if (null == TextureCache)
     {
         return;
     }
     foreach (var texture in TextureCache.Values)
     {
         texture?.Dispose();
     }
     TextureCache.Clear();
 }
Exemple #2
0
        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();
        }