Hello, Is it possible to perform your processing on the texture in place? If I understand your question properly you should be able to 'lock' your texture, run a kernel over the data in that texture then 'unlock' the texture and use it to draw, having never converted to CGImage. Discover Metal 4 along with the sample code: Processing a Texture has the Metal 4 way to do this kind of thing. Here is another sample that shows a similar approach in RealitKit: https://developer.apple.com/documentation/visionOS/generating-procedural-textures-in-visionos Please post back here if I've misunderstood your question.
Topic:
Spatial Computing
SubTopic:
General
Tags: