Instance Property


A mutability option that determines whether a buffer's contents can be modified.


var mutability: MTLMutability { get set }


The default value is MTLMutability.default.

If an explicit mutability option is not specified, the Metal driver assumes the following values:

See Also

Specifying Buffer Mutability

enum MTLMutability

The options that determine the mutability of a buffer's contents.

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