<!--
{
  "availability" : [
    "Xcode: 16.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "article",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/rendering-a-windowed-game-in-stereo",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Rendering a windowed game in stereo"
}
-->

# Rendering a windowed game in stereo

Bring an iOS or iPadOS game to visionOS and enhance it.

## Overview

This sample shows how to render a Metal app in a window on visionOS, with
stereoscopy, head tracking, [VRR](doc://com.apple.documentation/documentation/Metal/rendering-at-different-rasterization-rates),
and a 3D frame around the window.
The starting app is the [Deferred Lighting sample](doc://com.apple.documentation/documentation/Metal/rendering-a-scene-with-deferred-lighting-in-swift) for iOS, iPadOS, and macOS.

![A screen recording of a visionOS app in a window, showing a scene with columns and lights moving between the columns. A 3D frame surrounds the window.](videos/com.apple.RealityKit/game-stereo-sample-article.mp4)

> Note: This sample code project is associated with WWDC24 session
> 10093: [Bring your iOS or iPadOS game to visionOS](https://developer.apple.com/wwdc24/10093/).

### Configure the sample code project

This project requires an Apple Vision Pro, and cannot be run in the simulator.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)