---
title: "makeComputePipelineState(descriptor:dynamicLinkingDescriptor:compilerTaskOptions:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtl4compiler/makecomputepipelinestate(descriptor:dynamiclinkingdescriptor:compilertaskoptions:)-7dqdm"
---

# makeComputePipelineState(descriptor:dynamicLinkingDescriptor:compilerTaskOptions:)

Creates a new compute pipeline state object synchronously.

## Declaration

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

## Parameters

- `descriptor`: A compute pipeline state descriptor describing the pipeline this compiler creates.
- `compilerTaskOptions`: A description of the compilation process itself, providing parameters that influence execution of the compilation process.

## Return Value

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