<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSImageDescriptor/init(channelFormat:width:height:featureChannels:numberOfImages:usage:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSImageDescriptor(cm)imageDescriptorWithChannelFormat:width:height:featureChannels:numberOfImages:usage:"
  },
  "title" : "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).

```
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

A valid [`MPSImageDescriptor`](/documentation/MetalPerformanceShaders/MPSImageDescriptor) object.

---

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)