init(deviceResource:using:)
Creates a low-level texture from an existing Lowleveldeviceresource created and managed by the application.
Declaration
@MainActor convenience init(deviceResource: LowLevelDeviceResource, using commandBuffer: (any MTLCommandBuffer)? = nil) throwsParameters
- deviceResource:
The underlying texture this object should refer to.
- commandBuffer:
The Mtlcommandbuffer you intend to use for texture modifications. RealityKit waits for the command buffer to complete before utilizing the texture for rendering.