---
title: TextureResource.Contents
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/textureresource/contents
---

# TextureResource.Contents

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

## Declaration

```swift
struct Contents
```

## Overview

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:)](realitykit/textureresource/contents/init(mipmaplevels:).md)

### Defining the content

- [TextureResource.Contents.MipmapLevel](realitykit/textureresource/contents/mipmaplevel.md)
- [TextureResource.Contents.Slice](realitykit/textureresource/contents/slice.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating a texture resource

- [TextureResource.Format](realitykit/textureresource/format.md)
- [TextureResource.Compression](realitykit/textureresource/compression.md)
