setArgumentBuffer(_:startOffset:arrayElement:)
Specifies an array element within a buffer where the encoder writes argument data.
Declaration
func setArgumentBuffer(_ argumentBuffer: (any MTLBuffer)?, startOffset: Int, arrayElement: Int)Parameters
- argumentBuffer:
The destination buffer that represents an argument buffer.
- startOffset:
The starting byte offset of the buffer data.
- arrayElement:
The desired element of the argument buffer array targeted by encoding.