Terminate() public static method

public static Terminate ( System.Factory &dxgiFactory, SlimDX &d3d11Device ) : void
dxgiFactory System.Factory
d3d11Device SlimDX
return void
Exemplo n.º 1
0
        public void Dispose()
        {
            if (Viewers != null)
            {
                Viewers.Internal.Values.ToList().ForEach(viewer => viewer.Dispose());
                Viewers.Internal.Clear();
            }

            if (RenderingStrategies != null)
            {
                RenderingStrategies.Internal.Values.ToList().ForEach(renderingStrategies => renderingStrategies.Internal.Values.ToList().ForEach(renderingStrategy => renderingStrategy.Dispose()));
                RenderingStrategies.Internal.Clear();
            }

            if (TileManager != null)
            {
                TileManager.Dispose();
                TileManager = null;
            }

            //Thrust.Terminate();
            //Cuda.Terminate();
            D3D11.Terminate(ref mDxgiFactory, ref mD3D11Device);

            Console.WriteLine("\nMojo terminating...\n");
        }
Exemplo n.º 2
0
        public void Dispose()
        {
            Viewers.Internal.Values.ToList().ForEach(viewer => viewer.Dispose());
            Segmenter.Dispose();

            Thrust.Terminate();
            Cuda.Terminate();
            D3D11.Terminate(ref mDxgiFactory, ref mD3D11Device);

            Console.WriteLine("\nMojo terminating...\n");
        }