---
title: MPSSize
framework: metalperformanceshaders
role: symbol
role_heading: Structure
path: metalperformanceshaders/mpssize
---

# MPSSize

A size of a region in an image.

## Declaration

```swift
struct MPSSize
```

## Overview

Overview The depth of a region is usually 1.0. The double data type is used because some kernel operations require fractional precision—for example, the MPSImageLanczosScale filter.

## Topics

### Fields

- [width](metalperformanceshaders/mpssize/width.md)
- [height](metalperformanceshaders/mpssize/height.md)
- [depth](metalperformanceshaders/mpssize/depth.md)

### Initializers

- [init()](metalperformanceshaders/mpssize/init().md)
- [init(width:height:depth:)](metalperformanceshaders/mpssize/init(width:height:depth:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Sendable](swift/sendable.md)
