<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderer/Output-swift.struct/Texture",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer08LowLevelC0C6OutputV7TextureV"
  },
  "title" : "LowLevelRenderer.Output.Texture"
}
-->

# LowLevelRenderer.Output.Texture

A reference to a specific mip level, slice, and depth plane within a Metal texture.

```
struct Texture
```

## Overview

Corresponds to the level/slice/depthPlane parameters on
`MTLRenderPassAttachmentDescriptor`.

## Topics

### Creating a texture reference

[`init(texture: any MTLTexture, level: Int, slice: Int, depthPlane: Int)`](/documentation/RealityKit/LowLevelRenderer/Output-swift.struct/Texture/init(texture:level:slice:depthPlane:))

Creates a texture reference with the given texture, mip level, slice, and depth plane.

### Addressing the texture

[`var level: Int`](/documentation/RealityKit/LowLevelRenderer/Output-swift.struct/Texture/level)

The mipmap level of the texture to use. Corresponds to
`MTLRenderPassAttachmentDescriptor.level`.

[`var slice: Int`](/documentation/RealityKit/LowLevelRenderer/Output-swift.struct/Texture/slice)

The slice of the texture to use. Corresponds to
`MTLRenderPassAttachmentDescriptor.slice`.

[`var depthPlane: Int`](/documentation/RealityKit/LowLevelRenderer/Output-swift.struct/Texture/depthPlane)

The depth plane of the texture to use. Corresponds to
`MTLRenderPassAttachmentDescriptor.depthPlane`.

### Instance Properties

[`var texture: any MTLTexture`](/documentation/RealityKit/LowLevelRenderer/Output-swift.struct/Texture/texture)

The underlying Metal texture.

---

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)