NVIDIA IndeX API nvidia_logo_transpbg.gif Up
nv::index::IHeight_field_subset::Data_tile_buffer_info Struct Reference

Definition of internal buffer information. More...

#include <iheight_field_subset.h>

Public Attributes

mi::Float32 * data
 Raw memory pointer to internal elevation values. More...
 
mi::math::Vector_struct< mi::Float32, 3 > * normals
 Raw memory pointer to internal normals values. More...
 
mi::Size size
 Number of values in tile. More...
 
mi::Sint32 gpu_device_id
 GPU device id if the buffer is located on a GPU device, -1 to indicate a host buffer. More...
 

Detailed Description

Definition of internal buffer information.

The internal buffer information can be queried using the access_tile_data_buffer() method to gain access to the internal buffer data for direct write operations. This enables zero-copy optimizations for implementations of, e.g., IDistributed_compute_technique where large parts of the data-subset buffer can be written directly without going through the write() methods.

Note
The internal layout of the buffer of a height-field data tile is in a linear IJK/XYZ layout with the I/X-component running fastest.

Member Data Documentation

 data

mi::Float32* nv::index::IHeight_field_subset::Data_tile_buffer_info::data

Raw memory pointer to internal elevation values.

 gpu_device_id

mi::Sint32 nv::index::IHeight_field_subset::Data_tile_buffer_info::gpu_device_id

GPU device id if the buffer is located on a GPU device, -1 to indicate a host buffer.

 normals

mi::math::Vector_struct<mi::Float32, 3>* nv::index::IHeight_field_subset::Data_tile_buffer_info::normals

Raw memory pointer to internal normals values.

 size

mi::Size nv::index::IHeight_field_subset::Data_tile_buffer_info::size

Number of values in tile.


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