Example #1
0
        public void Dispose()
        {
            if (PositionsBuffer != null)
            {
                PositionsBuffer.Release();
                PositionsBuffer = null;
            }

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

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

            FusionUtilities.Release(PredictedBuffer);
            FusionUtilities.Release(VelocitiesBuffer);
            FusionUtilities.Release(ref m_argsBuffer);
        }
Example #2
0
 public void Dispose()
 {
     FusionUtilities.Release(ref tempBuffer1);
     FusionUtilities.Release(ref tempBuffer2);
 }