public void Dispose() { Material.Dispose(); _tech.Dispose(); Pass.Dispose(); VertexShader.Dispose(); PixelShader.Dispose(); MatToProg.Remove(Material.Target); }