<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/TextureResource/Dimensions2D",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation15TextureResourceC12Dimensions2DV"
  },
  "title" : "TextureResource.Dimensions2D"
}
-->

# TextureResource.Dimensions2D

The dimensions of a 2D texture.

```
struct Dimensions2D
```

## Overview

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

## Topics

### Creating the 2D dimensions

[`static func dimensions(width: Int, height: Int) -> TextureResource.Dimensions2D`](/documentation/RealityKit/TextureResource/Dimensions2D/dimensions(width:height:))

Specifies the dimensions of the 2D texture.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)