copyCommands(sourceBuffer:sourceRange:destinationBuffer:destinationIndex:)
Encodes a command that copies commands from one indirect command buffer into another.
Declaration
func copyCommands(sourceBuffer: any MTLIndirectCommandBuffer, sourceRange: Range<Int>, destinationBuffer: any MTLIndirectCommandBuffer, destinationIndex: Int)Parameters
- sourceRange:
The range of commands in
sourceBufferto copy. The copy operation requires that the source range starts at a valid execution point. - destinationIndex:
An index in
destinationBufferinto where the command copies content to. The copy operation requires that the destination index is a valid execution point with enough space left indestinationBufferto accommodatesourceRange.countcommands.