---
title: "MTLRegionMake1D(_:_:)"
framework: metal
role: symbol
role_heading: Function
path: "metal/mtlregionmake1d(_:_:)"
---

# MTLRegionMake1D(_:_:)

Creates a 3D representation of a 1D region.

## Declaration

```swift
func MTLRegionMake1D(_ x: Int, _ width: Int) -> MTLRegion
```

## Parameters

- `x`: The x coordinate of the origin.
- `width`: The width of the volume.

## Return Value

Return Value A region whose x and width values are as specified.  The y and z coordinates of the region’s origin are set to 0, and the region’s height and depth are set to 1.

## See Also

### Creating regions

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