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

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

Creates a 3D region.

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

A 3D region with the specified values.

---

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)