<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/TextureResource/Dimensions3D/dimensions(width:height:depth:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation15TextureResourceC12Dimensions3DV10dimensions5width6height5depthAESi_S2itFZ"
  },
  "title" : "dimensions(width:height:depth:)"
}
-->

# dimensions(width:height:depth:)

Specifies the dimensions of the 3D texture.

```
static func dimensions(width: Int, height: Int, depth: Int) -> TextureResource.Dimensions3D
```

## Discussion

The content specifies the number of mipmap levels.

---

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)