executeCommandsInBuffer(_:range:)
Encodes a command that runs a range of commands from an indirect command buffer (ICB).
Declaration
func executeCommandsInBuffer(_ buffer: any MTLIndirectCommandBuffer, range: Range<Int>)Parameters
- buffer:
An Mtlindirectcommandbuffer instance that contains other commands the current command runs.
- range:
A span of integers that represent the command entries in
bufferthe current command runs. When running on Metal devices that belong to the Mac2 GPU family, the number of commands needs to be less than or equal to 0x4000 (16,384). Metal devices that belong to an Apple silicon family, such as Apple10, don’t have this limitation.