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

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

Creates an image descriptor for an image container with options to set texture usage and batch size (number of images).

## Declaration

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

## 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.
- `numberOfImages`: The number of images for batch processing.
- `usage`: The intended usage of the underlying texture.

## Return Value

Return Value A valid MPSImageDescriptor object.

## See Also

### Methods

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