<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLTexture/dimensions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLTexture(py)dimensions"
  },
  "title" : "dimensions"
}
-->

# dimensions

The width and height, in texels, of the texture image.

```
var dimensions: vector_int2 { get }
```

## Discussion

If the texture contains multiple mipmap levels (the [`mipLevelCount`](/documentation/ModelIO/MDLTexture/mipLevelCount) value is greater than zero), this property reflects the base (largest) mipmap level.

If the texture is a cube texture (the [`isCube`](/documentation/ModelIO/MDLTexture/isCube) value is <doc://com.apple.documentation/documentation/Swift/true>), this property reflects the vertical arrangement of cube faces in the texture image data. That is, the texture’s height is six times its width, and the data represents six square images for the six sides of the cube.

---

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)