public virtual void Dispose() { Progress?.Dispose(); thumbnail?.Dispose(); stats?.Dispose(); gif?.Dispose(); scaling?.Dispose(); overlay?.Dispose(); ssim?.Dispose(); Images?.Dispose(); Filter?.Dispose(); polarConvertShader?.Dispose(); convertTo3DShader?.Dispose(); foreach (var imagePipeline in pipelines) { imagePipeline.Dispose(); } pixelValueShader?.Dispose(); SharedModel?.Dispose(); }
public virtual void Dispose() { Progress?.Dispose(); thumbnail?.Dispose(); stats?.Dispose(); gif?.Dispose(); scaling?.Dispose(); overlay?.Dispose(); ssim?.Dispose(); Images?.Dispose(); Filter?.Dispose(); polarConvertShader?.Dispose(); convertTo3DShader?.Dispose(); foreach (var imagePipeline in pipelines) { imagePipeline.Dispose(); } pixelValueShader?.Dispose(); SharedModel?.Dispose(); // finally, destroy directx resources Device.Get().Dispose(); }