---
title: dimensions
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdltexture/dimensions
---

# dimensions

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

## Declaration

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

## Discussion

Discussion If the texture contains multiple mipmap levels (the mipLevelCount value is greater than zero), this property reflects the base (largest) mipmap level. If the texture is a cube texture (the isCube value is 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.

## See Also

### Examining Texture Attributes

- [rowStride](modelio/mdltexture/rowstride.md)
- [channelCount](modelio/mdltexture/channelcount.md)
- [channelEncoding](modelio/mdltexture/channelencoding.md)
- [isCube](modelio/mdltexture/iscube.md)
- [mipLevelCount](modelio/mdltexture/miplevelcount.md)
