Allocates a new buffer of a given length and initializes its contents by copying existing data into it.
- iOS 8.0+
- macOS 10.11+
- tvOS 9.0+
The memory address from which to copy the initial data.
The size, in bytes, of the new buffer memory allocation. This is also the number of bytes that are copied from the
Specifies the behavior of the new buffer.
MTLBuffer object that contains the data copied from the
The storage allocation of the new
MTLBuffer object is not the same as the storage allocation of the
MTLBuffer objects created with this method are CPU-accessible and can be specified with a
MTLResource storage mode, but not a
MTLResource storage mode.