Exemplo n.º 1
0
        /// <summary>
        /// Disposes the host sampler object.
        /// </summary>
        public void Dispose()
        {
            IsDisposed = true;

            _hostSampler.Dispose();
            _anisoSampler?.Dispose();
        }
Exemplo n.º 2
0
 public void Dispose()
 {
     foreach (var samplerKV in _samplers)
     {
         samplerKV.Value.Dispose();
     }
     _defaultSampler.Dispose();
 }
Exemplo n.º 3
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _programColorBlitClearAlpha.Dispose();
         _programColorBlit.Dispose();
         _samplerNearest.Dispose();
         _samplerLinear.Dispose();
         _pipeline.Dispose();
     }
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 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();
     }
 }
Exemplo n.º 6
0
        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();
        }
Exemplo n.º 7
0
 /// <summary>
 /// Disposes the host sampler object.
 /// </summary>
 public void Dispose()
 {
     _hostSampler.Dispose();
     _anisoSampler?.Dispose();
 }