<!--
{
  "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/MTL4Archive/makeComputePipelineState(descriptor:dynamicLinkingDescriptor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "s:So11MTL4ArchiveP5MetalE24makeComputePipelineState10descriptor24dynamicLinkingDescriptorSo010MTLComputefG0_pSo0aefK0C_So0af12StageDynamicjK0CSgtKF"
  },
  "title" : "makeComputePipelineState(descriptor:dynamicLinkingDescriptor:)"
}
-->

# makeComputePipelineState(descriptor:dynamicLinkingDescriptor:)

Creates a compute pipeline state from the archive with a compute descriptor and a dynamic linking descriptor.

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

## Parameters

`descriptor`

A compute pipeline descriptor.

`dynamicLinkingDescriptor`

A descriptor that provides additional properties to link other functions with the pipeline.

## Return Value

A compute pipeline state object upon success, otherwise this function 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)