Namespace: Rx::LFR – Class: CCudaCompute – Header: Rx.LFR/CudaCompute.h

CCudaCompute::GetCudaImage Method

C++
Rx::LFR::CudaImage GetCudaImage(EImage imageId)

Returns a CUDA image that wraps the internal image data (pointer + info) defined by the given ID.

This image can be used as long as the internal image is not updated or deleted. If this image should be used without this limitation, the image can be copied from device to device via its Copy method.

As this image contains a pointer to the actual CUDA device memory, any CUDA API call or kernel can be used on the data. If this changes or invalidates the data, the state of this CUDA compute instance is no longer in a defined state.

Parameters

[EImage] imageId

The image ID that describes the desired image.

Returns

Rx::LFR::CudaImage

The CUDA image.