Class MTLCompute Pipeline Descriptor
An object used to customize how a new compute pipeline state object is compiled.
iOS 9.0+ macOS 10.11+ Mac Catalyst 13.0+ tvOS 9.0+ Declaration @interface MTLComputePipelineDescriptor :
To create a
object, you create a pipeline descriptor, configure its properties, and pass it to one of the creation methods on a MTLCompute Pipeline State object. See MTLDevice Creating a Compute Pipeline.
Use standard allocation and initialization techniques to create a
object and configure its properties. The most important property to set is the
MTLCompute Pipeline Descriptor property, which specifies which Metal function to call. compute Function Topics Specifying the Compute Function and Associated Data compute Function
The compute function to be compiled into the pipeline state object.
Specifying Buffer Layouts and Fetch Behavior Specifying Buffer Mutability buffers
The buffer mutability options for a compute pipeline's kernel function.
Identifying the Pipeline State Object label
A string that identifies this object.
Setting Indirect Command Buffer Support Resetting the Compute Pipeline State - reset
Resets all compute pipeline descriptor properties to their default values.
See Also Parallel Computation Hello Compute
Demonstrates how to perform data-parallel computations using the GPU.