Contents

MTLPipelineBufferDescriptor

The mutability options for a buffer that a render or compute pipeline uses.

Declaration

class MTLPipelineBufferDescriptor

Overview

Metal can perform additional optimizations if you guarantee that neither the CPU nor the GPU modify a buffer’s contents before starting a pass. Use immutable buffers as much as possible to take advantage of Metal optimizations.

To declare that a buffer is immutable, set the mutability property of their associated MTLPipelineBufferDescriptor object to MTLMutability.immutable.

Topics

Setting buffer mutability

See Also

Configuring a compute pipeline state