Namespace: Rx::LFR – Class: CudaImage – Header: Rx.LFR/CudaImage.h

CudaImage::CudaImage Constructor

C++
CudaImage(const CRxImageFormat& format, void* devPtr, size_t devPitch, int deviceID)

Constructor that wraps the given image data. The ownership is not passed!

Parameters

[const CRxImageFormat&] format

The format description of this image.

[void*] devPtr

[in,out] The CUDA device pointer that holds the actual image data allocated via cudaMallocPitch.

[size_t] devPitch

The the CUDA device pitch returned by cudaMallocPitch.

[int] deviceID

The ID of the CUDA device that owns the memory.