Instance Method

writeBytes:length:

Copies the specified data bytes into the underlying Metal buffer for use by a shader.

Required.

Declaration

- (void)writeBytes:(const void *)bytes length:(NSUInteger)length;

Parameters

bytes

The memory address from which to copy data.

length

The number of bytes to copy into the Metal buffer.