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)); }
public override void Destroy() { CheckError(PrimeApi.rtpBufferDescDestroy(InternalPtr)); }