Get the latest tech news
Drawing Graphics on Apple Vision with the Metal Rendering API
Drawing graphics efficiently for Apple Vision using the Metal rendering API - gnikoloff/drawing-graphics-on-apple-vision-with-metal-rendering-api
The system will then use that configuration to create a LayerRenderer that will hold information such as the pixel formats of the final color and depth buffers, how the textures used to present the rendered content to Apple Vision displays are organised, whether foveation is enabled and so on. The viewport sizes and view mappings into each render target depend on our textures' layout we specified when creating the LayerRenderer configuration used in Compositor Services earlier in the article. That is the right time to query the device anchor information, compute the correct view and projection matrices and submit any view-related drawing commands with Metal (basically all the steps we did in the "Vertex Amplification" chapter of this article).
Or read this on Hacker News