Example #1
0
    public void HardStop()
    {
        if (colorPool != null)
        {
            colorPool.Dispose();
        }
        if (color != null)
        {
            color.HardStop = true;
        }

        if (depthPool != null)
        {
            depthPool.Dispose();
        }
        if (depth != null)
        {
            depth.HardStop = true;
        }

        if (indexPool != null)
        {
            indexPool.Dispose();
        }
        if (index != null)
        {
            index.HardStop = true;
        }

        if (tracked != null)
        {
            tracked.HardStop = true;
        }

        GC.Collect();
    }