Class

MTLPipelineBufferDescriptor

An object that contains the mutability options for buffers used in a render or compute pass.

Declaration

@interface MTLPipelineBufferDescriptor : NSObject

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

Topics

Specifying Buffer Mutability

mutability

A mutability option that determines whether a buffer's contents can be modified.

MTLMutability

The options that determine the mutability of a buffer's contents.

Relationships

Inherits From

Conforms To

See Also

Specifying Buffer Mutability

buffers

The buffer mutability options for a compute pipeline's kernel function.