<!--
{
  "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/Contents",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation15TextureResourceC8ContentsV"
  },
  "title" : "TextureResource.Contents"
}
-->

# TextureResource.Contents

An object that references the pixel data for each mipmap level of a texture.

```
struct Contents
```

## Overview

Mipmaps are progressively smaller versions of the same texture image. Each level is half the size of the
previous level, with a minimum size of 1 pixel in each dimension.

## Topics

### Creating the content

[`init(mipmapLevels: [TextureResource.Contents.MipmapLevel])`](/documentation/RealityKit/TextureResource/Contents/init(mipmapLevels:))

Creates a texture contents object from an array of mipmaps.

### Defining the content

[`struct MipmapLevel`](/documentation/RealityKit/TextureResource/Contents/MipmapLevel)

An object that references the pixel data for a single mipmap of a texture.

[`struct Slice`](/documentation/RealityKit/TextureResource/Contents/Slice)

An object that references the pixel data for a single slice of a mipmap.

## Relationships

### Conforms To

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

[`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)