Implements the properties required by NVIDIA IndeX for creating a CUDA canvas. More...
#include <iindex.h>
Inherits mi::base::Interface_implement< nv::index::IIndex_cuda_canvas_creation_properties >.
Public Member Functions | |
Index_cuda_canvas_creation_properties (mi::Sint32 cuda_device_id, const mi::math::Vector_struct< mi::Uint32, 2 > &resolution) | |
Create an instance that delivers all properties required for creating a CUDA canvas. More... | |
virtual mi::Sint32 | get_cuda_device_id () const |
A CUDA device hosts the canvas contents in the CUDA buffer. More... | |
virtual const mi::math::Vector_struct< mi::Uint32, 2 > & | get_resolution () const |
A canvas has a given resolution. More... | |
Implements the properties required by NVIDIA IndeX for creating a CUDA canvas.
This implementation is to be moved to the application layer.
|
inline |
Create an instance that delivers all properties required for creating a CUDA canvas.
[in] | cuda_device_id | Defines the cuda device on which a memory for a cuda canvas shall be allocated. If set to '-1' or an invalid/undefined cuda device, then NVIDIA IndeX selects a device. |
[in] | resolution | The resolution of the requested built-in canvas. |
|
inlinevirtual |
A CUDA device hosts the canvas contents in the CUDA buffer.
|
inlinevirtual |
A canvas has a given resolution.