public unsafe override void Dispose() { Vbo.Dispose(); Ebo.Dispose(); Vao.Dispose(); shader.Dispose(); foreach (var item in textures) { item.Dispose(); } }
public void Dispose() { if (ElementBuffer != null) { ElementBuffer.Dispose(); ElementBuffer = null; } if (Vao != null) { Vao.Dispose(); Vao = null; } IsDisposed = true; }
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(); }
public void Dispose() { if (IndexBuffer != null) { IndexBuffer.Dispose(); IndexBuffer = null; } if (VertexBuffer != null) { VertexBuffer.Dispose(); VertexBuffer = null; } if (Vao != null) { Vao.Dispose(); Vao = null; } IsDisposed = true; }