---
title: "init(device:startColorSpace:endColorSpace:functionName:sourceRange:options:)"
framework: metalperformanceshaders
role: symbol
role_heading: Initializer
path: "metalperformanceshaders/mpsfcolorconversion/init(device:startcolorspace:endcolorspace:functionname:sourcerange:options:)"
---

# init(device:startColorSpace:endColorSpace:functionName:sourceRange:options:)

## Declaration

```swift
convenience init(device: any MTLDevice, startColorSpace start: CGColorSpace, endColorSpace end: CGColorSpace, functionName name: String, sourceRange: UnsafePointer<MPSFunctions_AABB>?, options: MPSFColorConversionOptions = []) throws
```
