<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSImageSizeEncodingState",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(pl)MPSImageSizeEncodingState"
  },
  "title" : "MPSImageSizeEncodingState"
}
-->

# MPSImageSizeEncodingState

A protocol for objects that contain information about an image size elsewhere in the graph.

```
protocol MPSImageSizeEncodingState : NSObjectProtocol
```

## Topics

### Instance Properties

[`sourceHeight`](/documentation/MetalPerformanceShaders/MPSImageSizeEncodingState/sourceHeight)

[`sourceWidth`](/documentation/MetalPerformanceShaders/MPSImageSizeEncodingState/sourceWidth)

## Relationships

### Conforming Types

[`MPSCNNConvolutionTransposeGradientState`](/documentation/MetalPerformanceShaders/MPSCNNConvolutionTransposeGradientState)

[`MPSCNNConvolutionGradientState`](/documentation/MetalPerformanceShaders/MPSCNNConvolutionGradientState)

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)