The buffer mutability options for a compute pipeline's kernel function.
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
This property holds an array of
MTLPipeline objects, with each array index corresponding to the same index in the buffer argument table for the compute pipeline's kernel function.
Metal can perform additional optimizations if you guarantee 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. Use immutable buffers as much as possible, for either regular buffers or argument buffers.