---
title: "MTLSizeMake(_:_:_:)"
framework: metal
role: symbol
role_heading: Function
path: "metal/mtlsizemake(_:_:_:)"
---

# MTLSizeMake(_:_:_:)

Creates a size instance with values for its width, height, and depth properties.

## Declaration

```swift
func MTLSizeMake(_ width: Int, _ height: Int, _ depth: Int) -> MTLSize
```

## Parameters

- `width`: A value for the x-axis dimension.
- `height`: A value for the y-axis dimension. Pass 1 for sizes with one dimension.
- `depth`: A value for the z-axis dimension. Pass 1 for sizes with one or two dimensions.

## See Also

### Creating a size instance

- [init()](metal/mtlsize/init().md)
- [init(width:height:depth:)](metal/mtlsize/init(width:height:depth:).md)
