Is it possible to set a CALayer as the contents of a RealityKit material?

Is it possible to set a CALayer as the contents of a RealityKit material? Currently this is possible with SceneKit materials. I am wondering if there is something similar for RealityKit.

https://developer.apple.com/documentation/scenekit/scnmaterialproperty/1395372-contents

Accepted Reply

Not directly, no. The closest thing is to write the contents of your CALayer to a RealityKit TextureResource (MTLTexture) using the DrawableQueue API. Feel free to submit a feature request on Feedback Assistant.

Replies

Not directly, no. The closest thing is to write the contents of your CALayer to a RealityKit TextureResource (MTLTexture) using the DrawableQueue API. Feel free to submit a feature request on Feedback Assistant.