<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTL4Compiler/makeComputePipelineState(descriptor:dynamicLinkingDescriptor:compilerTaskOptions:)-7dqdm",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "s:So12MTL4CompilerP5MetalE24makeComputePipelineState10descriptor24dynamicLinkingDescriptor19compilerTaskOptionsSo010MTLComputefG0_pSo0aefK0C_So0af12StageDynamicjK0CSgSo0abmN0CSgtKF"
  },
  "title" : "makeComputePipelineState(descriptor:dynamicLinkingDescriptor:compilerTaskOptions:)"
}
-->

# makeComputePipelineState(descriptor:dynamicLinkingDescriptor:compilerTaskOptions:)

Creates a compute pipeline state synchronously.

```
func makeComputePipelineState(descriptor: MTL4ComputePipelineDescriptor, dynamicLinkingDescriptor: MTL4PipelineStageDynamicLinkingDescriptor? = nil, compilerTaskOptions: MTL4CompilerTaskOptions? = nil) throws -> any MTLComputePipelineState
```

## Parameters

`descriptor`

A compute pipeline state descriptor that describes the pipeline the compiler creates.

`dynamicLinkingDescriptor`

An optional descriptor that configures dynamic linking for the pipeline state.

`compilerTaskOptions`

Options that control the compilation process.

## Return Value

A compute pipeline state upon success, otherwise this method throws.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)