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

# TextureResource.Contents.MipmapLevel

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

```
struct MipmapLevel
```

## Topics

### Creating a texture mipmap level

[`static func mip(data: Data, bytesPerRow: Int) -> TextureResource.Contents.MipmapLevel`](/documentation/RealityKit/TextureResource/Contents/MipmapLevel/mip(data:bytesPerRow:))

Specifies a single mipmap level of a texture resource with pixel data that RealityKit copies from a byte buffer.

[`static func mip(data: Data, bytesPerRow: Int, bytesPerImage: Int) -> TextureResource.Contents.MipmapLevel`](/documentation/RealityKit/TextureResource/Contents/MipmapLevel/mip(data:bytesPerRow:bytesPerImage:))

Specifies a multi-image mipmap level of a texture resource with pixel data that RealityKit copies from a byte buffer.

[`static func mip(slices: [TextureResource.Contents.Slice]) -> TextureResource.Contents.MipmapLevel`](/documentation/RealityKit/TextureResource/Contents/MipmapLevel/mip(slices:))

Specifies a single mipmap level of a 2D or 3D texture resource that slices provide.

[`static func mip(unsafeBuffer: any MTLBuffer, offset: Int, size: Int, bytesPerRow: Int) -> TextureResource.Contents.MipmapLevel`](/documentation/RealityKit/TextureResource/Contents/MipmapLevel/mip(unsafeBuffer:offset:size:bytesPerRow:))

Specifies a single mipmap level of a texture resource with pixel data that RealityKit copies from a Metal buffer.

[`static func mip(unsafeBuffer: any MTLBuffer, offset: Int, size: Int, bytesPerRow: Int, bytesPerImage: Int) -> TextureResource.Contents.MipmapLevel`](/documentation/RealityKit/TextureResource/Contents/MipmapLevel/mip(unsafeBuffer:offset:size:bytesPerRow:bytesPerImage:))

Specifies a multi-image mipmap level of a texture resource with pixel data that RealityKit copies from a Metal buffer.

## 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)