NVIDIA OptiX 7.7 nvidia_logo_transpbg.gif Up
OptixInstance Struct Reference

#include <optix_types.h>

Public Attributes

float transform [12]
 
unsigned int instanceId
 
unsigned int sbtOffset
 
unsigned int visibilityMask
 
unsigned int flags
 
OptixTraversableHandle traversableHandle
 
unsigned int pad [2]
 

Detailed Description

Member Data Documentation

 flags

unsigned int OptixInstance::flags

Any combination of OptixInstanceFlags is allowed.

 instanceId

unsigned int OptixInstance::instanceId

Application supplied ID. The maximal ID can be queried using OPTIX_DEVICE_PROPERTY_LIMIT_MAX_INSTANCE_ID.

 pad

unsigned int OptixInstance::pad[2]

round up to 80-byte, to ensure 16-byte alignment

 sbtOffset

unsigned int OptixInstance::sbtOffset

SBT record offset. In a traversable graph with multiple levels of instance acceleration structure (IAS) objects, offsets are summed together. The maximal SBT offset can be queried using OPTIX_DEVICE_PROPERTY_LIMIT_MAX_SBT_OFFSET.

 transform

float OptixInstance::transform[12]

affine object-to-world transformation as 3x4 matrix in row-major layout

 traversableHandle

OptixTraversableHandle OptixInstance::traversableHandle

Set with an OptixTraversableHandle.

 visibilityMask

unsigned int OptixInstance::visibilityMask

Visibility mask. If rayMask & instanceMask == 0 the instance is culled. The number of available bits can be queried using OPTIX_DEVICE_PROPERTY_LIMIT_NUM_BITS_INSTANCE_VISIBILITY_MASK.