Home

Awesome

Immersive Spatial Rendering with Metal in visionOS

This sample is a minimal example of rendering a immersive spatial experience with Metal, ARKit, and visionOS Compositing Services.

Example screenshot of spatial rendering

When running on the Simulator, the app uses the .dedicated layout. When running on an Apple Vision Pro, the app uses the .layered layout along with Metal vertex amplification to efficiently render both stereo views in a single pass.

When running on a visionOS 2 simulator or device, the app enables the mixed immersion style and enables the user to progressively select how much of the real world is visible via passthrough.