executeCommandsInBuffer(_:range:)
Encodes an instruction to run commands from an indirect buffer.
Declaration
func executeCommandsInBuffer(_ buffer: any MTLIndirectCommandBuffer, range: Range<Int>)Parameters
- buffer:
The Mtlindirectcommandbuffer instance containing the commands to execute.
- range:
The range of commands to execute. When running on Metal devices that belong to the Mac2 GPU family, the maximum length of the range is 0x4000 (16,384) commands. Metal devices that belong to an Apple silicon family, such as Apple10, don’t have this limitation.