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

# makeMachineLearningPipelineState(descriptor:)

Creates a new ML pipeline state with descriptor.

```
func makeMachineLearningPipelineState(descriptor: MTL4MachineLearningPipelineDescriptor) throws -> any MTL4MachineLearningPipelineState
```

## Parameters

`descriptor`

A machine learning pipeline state descriptor to use for creating the new pipeline state.

## Return Value

a machine learning pipeline state 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)