NVIDIA OptiX 8.1 nvidia_logo_transpbg.gif Up
OptixBuildInputInstanceArray Struct Reference

#include <optix_types.h>

Public Attributes

CUdeviceptr instances
 
unsigned int numInstances
 
unsigned int instanceStride
 

Detailed Description

Instance and instance pointer inputs.

See also
OptixBuildInput::instanceArray

Member Data Documentation

 instances

CUdeviceptr OptixBuildInputInstanceArray::instances

If OptixBuildInput::type is OPTIX_BUILD_INPUT_TYPE_INSTANCE_POINTERS instances and aabbs should be interpreted as arrays of pointers instead of arrays of structs.

This pointer must be a multiple of OPTIX_INSTANCE_BYTE_ALIGNMENT if OptixBuildInput::type is OPTIX_BUILD_INPUT_TYPE_INSTANCES. The array elements must be a multiple of OPTIX_INSTANCE_BYTE_ALIGNMENT if OptixBuildInput::type is OPTIX_BUILD_INPUT_TYPE_INSTANCE_POINTERS.

 instanceStride

unsigned int OptixBuildInputInstanceArray::instanceStride

Only valid for OPTIX_BUILD_INPUT_TYPE_INSTANCE Defines the stride between instances. A stride of 0 indicates a tight packing, i.e., stride = sizeof( OptixInstance )

 numInstances

unsigned int OptixBuildInputInstanceArray::numInstances