<!--
{
  "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/init(texture:level:slice:depthPlane:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer08LowLevelC0C6OutputV7TextureV7texture5level5slice10depthPlaneAGSo10MTLTexture_p_S3itcfc"
  },
  "title" : "init(texture:level:slice:depthPlane:)"
}
-->

# init(texture:level:slice:depthPlane:)

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

```
init(texture: any MTLTexture, level: Int = 0, slice: Int = 0, depthPlane: Int = 0)
```

## Parameters

`texture`

The underlying Metal texture.

`level`

The mipmap level of the texture to use. Defaults to `0`.

`slice`

The slice of the texture to use. Defaults to `0`.

`depthPlane`

The depth plane of the texture to use. Defaults to `0`.

---

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)