---
title: TextureResource.Format
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/textureresource/format
---

# TextureResource.Format

The pixel format and encoding of a texture.

## Declaration

```swift
struct Format
```

## Overview

Overview The texture’s format controls the sampling and conversions (if any) to use when rendering with that texture.

## Topics

### Creating the format

- [color(_:pixelFormat:)](realitykit/textureresource/format/color(_:pixelformat:).md)
- [normal(_:pixelFormat:)](realitykit/textureresource/format/normal(_:pixelformat:).md)
- [raw(pixelFormat:)](realitykit/textureresource/format/raw(pixelformat:).md)

### Defining the format profile

- [TextureResource.Format.ColorSpace](realitykit/textureresource/format/colorspace.md)
- [TextureResource.Format.NormalEncoding](realitykit/textureresource/format/normalencoding.md)

## Relationships

### Conforms To

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

## See Also

### Creating a texture resource

- [TextureResource.Contents](realitykit/textureresource/contents.md)
- [TextureResource.Compression](realitykit/textureresource/compression.md)
