---
title: "dimensions(width:height:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/textureresource/dimensions2d/dimensions(width:height:)"
---

# dimensions(width:height:)

Specifies the dimensions of the 2D texture.

## Declaration

```swift
static func dimensions(width: Int, height: Int) -> TextureResource.Dimensions2D
```

## Discussion

Discussion The content specifies the number of mipmap levels.
