An object that contains the mutability options for buffers used in a render or compute pass.
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+Beta
- tvOS 11.0+
The Metal driver may perform certain optimizations if you specify that neither the CPU nor the GPU will modify a buffer's contents between the time the buffer is set in a function's argument table and the time its associated command buffer completes execution. These types of read-only buffers are considered immutable, and you and can define them by setting the
mutability property of their associated
MTLPipeline object to
MTLMutability. Use immutable buffers as much as possible, for either regular buffers or argument buffers.