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

# MTLSizeMake(_:_:_:)

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

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

---

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)