---
title: "MTLRegionMake3D(_:_:_:_:_:_:)"
framework: metal
role: symbol
role_heading: Function
path: "metal/mtlregionmake3d(_:_:_:_:_:_:)"
---

# MTLRegionMake3D(_:_:_:_:_:_:)

Creates a 3D region.

## Declaration

```swift
func MTLRegionMake3D(_ x: Int, _ y: Int, _ z: Int, _ width: Int, _ height: Int, _ depth: Int) -> MTLRegion
```

## Parameters

- `x`: The x coordinate of the origin.
- `y`: The y coordinate of the origin.
- `z`: The z coordinate of the origin.
- `width`: The width of the volume.
- `height`: The height of the volume.
- `depth`: The depth of the volume.

## Return Value

Return Value A 3D region with the specified values.

## See Also

### Creating regions

- [init()](metal/mtlregion/init().md)
- [init(origin:size:)](metal/mtlregion/init(origin:size:).md)
- [MTLRegionMake1D(_:_:)](metal/mtlregionmake1d(_:_:).md)
- [MTLRegionMake2D(_:_:_:_:)](metal/mtlregionmake2d(_:_:_:_:).md)
