GetInstanceTraversable

Description

Returns an instance traversable from an IAS by index.

Signature

uint64_t GetInstanceTraversable(
    uint64_t ias,
    uint instIdx);

Parameters

ias : uint64_t

Instance acceleration structure handle

instIdx : uint

Instance index

Return value

Traversable handle for the specified instance

Remarks

IAS must be built with OPTIX_BUILD_FLAG_ALLOW_RANDOM_INSTANCE_ACCESS Currently only supported on CUDA/OptiX

Availability and Requirements

Defined for the following targets:

cuda

Available in stages: intersection, raygen, miss, callable, closesthit, anyhit.

Requires capability: optix_multilevel_traversal.