Contents

maxKernelBufferBindCount

The maximum number of buffers that you can set per command for the compute kernel.

Declaration

var maxKernelBufferBindCount: Int { get set }

Discussion

Metal ignores this property if inheritBuffers is true or if you configured commandTypes for rendering commands. Metal needs to reserve enough memory in each command to store this many arguments. Use the smallest value that works for all commands you plan to encode into the indirect command buffer.

See Also

Declaring the maximum number of argument buffers per command