<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSImageDescriptor"
  },
  "title" : "MPSImageDescriptor"
}
-->

# MPSImageDescriptor

A description of the attributes used to create an [`MPSImage`](/documentation/MetalPerformanceShaders/MPSImage).

```
class MPSImageDescriptor
```

## Overview

You use an [`MPSImageDescriptor`](/documentation/MetalPerformanceShaders/MPSImageDescriptor) to describe and create the properties of an [`MPSImage`](/documentation/MetalPerformanceShaders/MPSImage) such as its size, pixel format and CPU cache mode.

## Topics

### Methods

[`init(channelFormat:width:height:featureChannels:)`](/documentation/MetalPerformanceShaders/MPSImageDescriptor/init(channelFormat:width:height:featureChannels:))

Creates an image descriptor for a single image.

[`init(channelFormat:width:height:featureChannels:numberOfImages:usage:)`](/documentation/MetalPerformanceShaders/MPSImageDescriptor/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).

### Properties

[`width`](/documentation/MetalPerformanceShaders/MPSImageDescriptor/width)

The width of the image.

[`height`](/documentation/MetalPerformanceShaders/MPSImageDescriptor/height)

The height of the image.

[`featureChannels`](/documentation/MetalPerformanceShaders/MPSImageDescriptor/featureChannels)

The number of feature channels per pixel.

[`numberOfImages`](/documentation/MetalPerformanceShaders/MPSImageDescriptor/numberOfImages)

The number of images for batch processing.

[`pixelFormat`](/documentation/MetalPerformanceShaders/MPSImageDescriptor/pixelFormat)

The pixel format for the underlying texture.

[`channelFormat`](/documentation/MetalPerformanceShaders/MPSImageDescriptor/channelFormat)

The storage format to use for each channel in the image.

[`cpuCacheMode`](/documentation/MetalPerformanceShaders/MPSImageDescriptor/cpuCacheMode)

The CPU cache mode of the underlying texture.

[`storageMode`](/documentation/MetalPerformanceShaders/MPSImageDescriptor/storageMode)

The storage mode of underlying texture.

[`usage`](/documentation/MetalPerformanceShaders/MPSImageDescriptor/usage)

Options to specify the intended usage of the underlying texture.



---

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)