---
title: TextureResource.Dimensions2D
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/textureresource/dimensions2d
---

# TextureResource.Dimensions2D

The dimensions of a 2D texture.

## Declaration

```swift
struct Dimensions2D
```

## Overview

Overview This specifies the width and height of a 2D texture.

## Topics

### Creating the 2D dimensions

- [dimensions(width:height:)](realitykit/textureresource/dimensions2d/dimensions(width:height:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
