Declaration

Overview

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 MTLPipelineBufferDescriptor object to MTLMutability.immutable. Use immutable buffers as much as possible, for either regular buffers or argument buffers.