<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLRegionMake1D(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@F@MTLRegionMake1D"
  },
  "title" : "MTLRegionMake1D(_:_:)"
}
-->

# MTLRegionMake1D(_:_:)

Creates a 3D representation of a 1D region.

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

## Parameters

`x`

The x coordinate of the origin.

`width`

The width of the volume.

## 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.`

## Discussion

---

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)