コード例 #1
0
        public void Dispose()
        {
            if (Positions != null)
            {
                Positions.Release();
                Positions = null;
            }

            CBUtility.Release(ref m_argsBuffer);
        }
コード例 #2
0
        public void Dispose()
        {
            if (Positions != null)
            {
                Positions.Release();
                Positions = null;
            }

            if (Densities != null)
            {
                Densities.Release();
                Densities = null;
            }

            if (Pressures != null)
            {
                Pressures.Release();
                Pressures = null;
            }

            CBUtility.Release(Predicted);
            CBUtility.Release(Velocities);
            CBUtility.Release(ref m_argsBuffer);
        }
コード例 #3
0
 public void Dispose()
 {
     CBUtility.Release(ref m_buffer1);
     CBUtility.Release(ref m_buffer2);
 }