<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelTexture/init(deviceResource:using:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation15LowLevelTextureC14deviceResource5usingAcA0cd6DeviceG0C_So16MTLCommandBuffer_pSgtKcfc"
  },
  "title" : "init(deviceResource:using:)"
}
-->

# init(deviceResource:using:)

Creates a low-level texture from an existing [`LowLevelDeviceResource`](/documentation/RealityKit/LowLevelDeviceResource) created and managed by the application.

```
@MainActor convenience init(deviceResource: LowLevelDeviceResource, using commandBuffer: (any MTLCommandBuffer)? = nil) throws
```

## Parameters

`deviceResource`

The underlying texture this object should refer to.

`commandBuffer`

The <doc://com.apple.documentation/documentation/Metal/MTLCommandBuffer>
you intend to use for texture modifications.
RealityKit waits for the command buffer to complete before utilizing the texture for rendering.

---

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)