---
title: "makeComputePipelineState(descriptor:dynamicLinkingDescriptor:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtl4archive/makecomputepipelinestate(descriptor:dynamiclinkingdescriptor:)"
---

# makeComputePipelineState(descriptor:dynamicLinkingDescriptor:)

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

## Declaration

```swift
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

Return Value A compute pipeline state object upon success, otherwise this function throws.
