#include <optix_types.h>
Public Attributes | |
CUdeviceptr | instances |
unsigned int | numInstances |
unsigned int | instanceStride |
Instance and instance pointer inputs.
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.
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 )
unsigned int OptixBuildInputInstanceArray::numInstances |