NVIDIA IndeX API nvidia_logo_transpbg.gif Up
nv::index::IIndex_cuda_canvas Class Referenceabstract

CUDA-memory based canvas. More...

#include <iindex_canvas.h>

Inherits mi::base::Interface_declare< 0x631ca66c, ... >.

Public Member Functions

virtual mi::neuraylib::ICanvas_cuda * get_cuda_canvas () const =0
 Returns the CUDA memory based canvas for external use, e.g., by a video encoder as input. More...
 
virtual mi::Sint32 get_device_id () const =0
 The CUDA memory canvas is hosted on a CUDA device. More...
 

Detailed Description

CUDA-memory based canvas.

Using a CUDA-memory based enables NVIDIA IndeX to run rendering and image compositing on the GPU only without ever transferring data from GPUs to main memory. NVIDIA IndeX support the creation of a built-in CUDA canvas that derives from the following interface class.

Member Function Documentation

 get_cuda_canvas()

virtual mi::neuraylib::ICanvas_cuda * nv::index::IIndex_cuda_canvas::get_cuda_canvas ( ) const
pure virtual

Returns the CUDA memory based canvas for external use, e.g., by a video encoder as input.

Returns
The low-level CUDA memory canvas.

 get_device_id()

virtual mi::Sint32 nv::index::IIndex_cuda_canvas::get_device_id ( ) const
pure virtual

The CUDA memory canvas is hosted on a CUDA device.

The CUDA device ID tells the user by which CUDA device the canvas is managed.

Returns
Returns the device ID.

The documentation for this class was generated from the following file: