---
title: "init(channelFormat:width:height:featureChannels:)"
framework: metalperformanceshaders
role: symbol
role_heading: Initializer
path: "metalperformanceshaders/mpsimagedescriptor/init(channelformat:width:height:featurechannels:)"
---

# init(channelFormat:width:height:featureChannels:)

Creates an image descriptor for a single image.

## Declaration

```swift
convenience init(channelFormat: MPSImageFeatureChannelFormat, width: Int, height: Int, featureChannels: Int)
```

## Parameters

- `channelFormat`: The storage format to use for each channel in the image.
- `width`: The width of the image.
- `height`: The height of the image.
- `featureChannels`: The number of feature channels per pixel.

## Return Value

Return Value A valid MPSImageDescriptor object.

## See Also

### Methods

- [init(channelFormat:width:height:featureChannels:numberOfImages:usage:)](metalperformanceshaders/mpsimagedescriptor/init(channelformat:width:height:featurechannels:numberofimages:usage:).md)
