/// <summary> /// Disposes the host sampler object. /// </summary> public void Dispose() { IsDisposed = true; _hostSampler.Dispose(); _anisoSampler?.Dispose(); }
public void Dispose() { foreach (var samplerKV in _samplers) { samplerKV.Value.Dispose(); } _defaultSampler.Dispose(); }
protected virtual void Dispose(bool disposing) { if (disposing) { _programColorBlitClearAlpha.Dispose(); _programColorBlit.Dispose(); _samplerNearest.Dispose(); _samplerLinear.Dispose(); _pipeline.Dispose(); } }
public void Dispose() { deactivated = true; if (NoisePlane != null) { NoisePlane.Dispose(); } NoisePlane = null; Sampler.Dispose(); blocks = null; blocks_set = null; blocks_is0 = null; blocks_type = null; SurfaceData = null; }
protected override void EndProcessing() { try { var session = new TrainingSession(Model, LossFunction, EvaluationFunction, Learner, LearningScheduler, Sampler, ValidationSampler, DataToInputMap, null, null, Callbacks); foreach (var progress in TrainingLoop.Start(session, MaxIteration, ProgressOutputStep, Logger)) { WriteObject(progress); } } finally { Sampler.Dispose(); ValidationSampler.Dispose(); } }
protected override void Cleanup() { base.Cleanup(); _defaultBlendState?.Dispose(); _defaultDepthStencilState?.Dispose(); _defaultRasterizerState?.Dispose(); _leftConstantBuffer?.Dispose(); _rightConstantBuffer?.Dispose(); _simplePipeline?.Dispose(); _simpleVertexBuffer?.Dispose(); _simplePixelShader?.Dispose(); _simpleSampler?.Dispose(); _simpleVertexShader?.Dispose(); _textureFactory?.Dispose(); _texturedPipeline?.Dispose(); _texturedPixelShader?.Dispose(); _texturedVertexShader?.Dispose(); _texturedVertexBuffer?.Dispose(); }
/// <summary> /// Disposes the host sampler object. /// </summary> public void Dispose() { _hostSampler.Dispose(); _anisoSampler?.Dispose(); }