maximum optix traversable graph

Hi,

Sorry if it is a stupid question. But what is maximum optix traversable graph in OptiX 7 ?
I would like to understand this one to use optixPipelineSetStackSize.

Thanks

That’s a device property you can query with optixDeviceContextGetProperty()
Look for enum OptixDeviceProperty and OPTIX_DEVICE_PROPERTY_LIMIT_MAX_TRAVERSABLE_GRAPH_DEPTH in optix_7_types.h
https://raytracing-docs.nvidia.com/optix7/api/html/group__optix__types.html#ga169feefb9f4bc67c9e73b364230ce688

It returns 31 on my RTX 6000.
You normally set maxTraversableGraphDepth to 2 if your OptixPipelineCompileOptions traversableGraphFlags is set to OPTIX_TRAVERSABLE_GRAPH_FLAG_ALLOW_SINGLE_LEVEL_INSTANCING.

Thank you Detlef, that’s very helpful.