Exemple #1
0
        public override void Destroy()
        {
            if (_fmt.Type == RTPBufferType.CudaLinear)
            {
                //CudaDriverApi.CudaCall(CudaDriverApi.cuMemFree(_dataPointer));
                CudaRunTimeApi.CudaCall(CudaRunTimeApi.cudaFree(_dataPointer));
            }
            else
            {
                GC.RemoveMemoryPressure(size);
                Marshal.FreeHGlobal(_dataPointer);
            }

            CheckError(PrimeApi.rtpBufferDescDestroy(InternalPtr));
        }
Exemple #2
0
 public override void Destroy()
 {
     CheckError(PrimeApi.rtpBufferDescDestroy(InternalPtr));
 }