Contents

maxCallStackDepth

The maximum call stack depth for indirect function calls in compute shaders.

Declaration

var maxCallStackDepth: Int { get set }

Discussion

The property’s default value is 1. Change its value if you use recursive functions in your compute pass.

The maximum call stack depth applies only to indirect function calls in your shader, and affects the upper bound of stack memory for each thread. Indirect function calls include those to visible functions, intersection functions, and to dynamic libraries.

See Also

Configuring the compute execution environment