#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] |
Instances.
| unsigned int OptixInstance::flags |
Any combination of OptixInstanceFlags is allowed.
| unsigned int OptixInstance::instanceId |
Application supplied ID. The maximal ID can be queried using OPTIX_DEVICE_PROPERTY_LIMIT_MAX_INSTANCE_ID.
| unsigned int OptixInstance::pad[2] |
round up to 80-byte, to ensure 16-byte alignment
| 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.
| float OptixInstance::transform[12] |
affine object-to-world transformation as 3x4 matrix in row-major layout
| OptixTraversableHandle OptixInstance::traversableHandle |
Set with an OptixTraversableHandle.
| 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.