Instance Method

map

Provides direct, read-only access to the buffer’s contents.

Required.

Declaration

- (MDLMeshBufferMap *)map;

Return Value

A data object mapped to the storage memory for the buffer.

Discussion

The buffer’s storage remains mapped for as long as the returned MDLMeshBufferMap object exists, potentially restricting other uses of that storage. For example, if a buffer’s storage is shared with GPU memory, that buffer may be unavailable for use in rendering until the MDLMeshBufferMap object is deallocated.

See Also

Working with Data in a Buffer

- fillData:offset:

Writes the specified data into the buffer.

Required.

length

The data size of the buffer, in bytes.

Required.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software