mutability
A mutability option that determines whether you can update a buffer’s contents before related commands use the buffer.
Declaration
var mutability: MTLMutability { get set }Discussion
The default value is MTLMutability.default.
If you don’t explicitly declare mutability, Metal uses the following default behaviors:
Regular buffers are mutable by default, and Metal treats MTLMutability.default as if it were MTLMutability.mutable.
Argument buffers are immutable by default, and Metal treats MTLMutability.default as if it were MTLMutability.immutable.