Instance Method

setArgumentBuffer:startOffset:arrayElement:

Specifies the argument buffer that resources are encoded into.

Required.

Declaration

- (void)setArgumentBuffer:(id<MTLBuffer>)argumentBuffer startOffset:(NSUInteger)startOffset arrayElement:(NSUInteger)arrayElement;

Parameters

argumentBuffer

The destination buffer that represents an argument buffer.

startOffset

The starting byte offset of the buffer.

arrayElement

The desired element of the argument buffer array targeted by encoding.

See Also

Creating an Argument Buffer

- setArgumentBuffer:offset:

Specifies the argument buffer that resources are encoded into.

Required.

encodedLength

The number of bytes required to store the encoded resources of an argument buffer.

Required.