maximum optix traversable graph


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.


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

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.