---
title: "init(package:descriptor:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Initializer
path: "metalperformanceshadersgraph/mpsgraphexecutable/init(package:descriptor:)"
---

# init(package:descriptor:)

Initialize the executable with the Metal Performance Shaders Graph package at the provided URL.

## Declaration

```swift
init(package mpsgraphPackageURL: URL, descriptor compilationDescriptor: MPSGraphCompilationDescriptor?)
```

## Parameters

- `mpsgraphPackageURL`: The URL where to read the serialized MPSGraphExecutable.
- `compilationDescriptor`: Compilation descriptor to be used to specialize, since the executable was created with a compilationDescriptor already this one overrides those settings to the extent it can.
