· via Hacker News – Front Page (native)
Leonida recompiles GTA VI's Xbox version for Windows, but the game does not boot yet
A static recompilation project called Leonida has translated all 26,503 shaders from GTA VI's Xbox Series version into Vulkan and built much of the surrounding toolchain, though the game itself does not boot yet.
A port built by recompilation, not emulation
A GitHub project called Leonida, published under the name ItsNotRexed, is trying to turn the Xbox Series version of Grand Theft Auto VI into a native Windows program. According to the project's README, the technique is static recompilation: the Xbox Series CPU is x86-64, the same architecture as a PC, so the game's code can be loaded and executed natively while the console's system software is reimplemented around it. The console's precompiled RDNA2 GPU programs are translated into SPIR-V for Vulkan, and the game's models, textures and audio are read from the player's own game package.
The project draws a careful legal line. The repository contains no game data, no keys and no executable, does not explain how to obtain them, and nothing in it decrypts or works around copy protection. Users must already have their own copy readable on disk, and everything the build generates, from translated shaders to saves, stays on their machine.
Where it stands
The stated status is bluntly early: the game does not boot yet. Everything that can be done without the game's executable is already in place, so work on booting can begin as soon as a developer has one available.
The largest finished piece is the shader pipeline. All 26,503 GPU programs in the game have been carved out of the package, unpacked, disassembled and translated from RDNA2 to SPIR-V: 2,236 vertex shaders, 12,101 pixel shaders, 2,689 compute shaders, 9,282 mesh shaders and 195 geometry shaders, every one of which passes the spirv-val validator. Disassembly currently depends on LLVM 21, because LLVM 23 still rejects 1,471 of them.
There is a hardware caveat. 21,545 of the shaders are wave64, meaning they assume AMD's 64-wide subgroups, and they are exact on AMD GPUs. On NVIDIA and Intel hardware, which uses 32-wide subgroups, compute and mesh shaders can be made exact through a wave64 emulation mode that is enabled there by default, but cross-half wave operations in vertex, pixel and geometry shaders remain approximate. The hand-written GPU tests behind the translator have been run across more than 30 GPU and driver combinations, spanning NVIDIA Turing through Blackwell on Windows and Linux, AMD GCN3 through RDNA4, Intel Gen9, an Apple M1 via MoltenVK, and Mesa's software rasteriser.
Assets, audio and a partial graphics layer
The asset side is also far along. Models export as OBJ files with real names, UVs and material references, though not every layout is decoded yet. Textures export as DDS, and a clean-room decoder for the BCPack format rebuilds BC1, BC3, BC4 and BC5 blocks, though it is not yet wired into the main dump tool. Audio banks export completely: Opus streams are repackaged losslessly as Ogg Opus, PCM becomes WAV, and XMA2 streams are decoded with ffmpeg. The project has also measured 1,589 audio configuration records with exact durations, although per-track start offsets are still missing.
The runtime pieces are more mixed. A PE loader with import shims runs a stand-in executable end to end, covering CRT startup, statics, heap, files and threads, but it has not been tested against the real game executable. The Xbox D3D12-to-Vulkan translation layer is in progress: it can create queues, command lists, fences, descriptor heaps, resources, views and samplers, and it handles barriers, clears, uploads, copies and colour resolves, checked so far on a single GPU. Buffer views, root signatures, pipelines, draws and the swapchain do not exist yet.
Built locally from your own copy
Nothing is distributed ready-made. A build script locates the user's copy of the Xbox package, version 1.0.2.1, by scanning common folders and drive roots and identifying the version from a few file sizes, then assembles everything on that machine. Prerequisites include Windows 10/11 x64 with roughly 350 GB of free space, Python 3.12+, the .NET 8 SDK, the Vulkan SDK, LLVM 21 built with the AMDGPU target, and Visual Studio 2022, with ffmpeg optional. Interrupted builds resume where they left off.
Why it matters
Leonida represents a third route between an official PC port and traditional emulation. Because the Xbox Series shares the PC's CPU architecture, recompilation can run the game's code at native speed instead of interpreting it; the hard work shifts to GPU translation and reimplemented system software, and the project's numbers show both how feasible and how laborious that work is. The legal posture also matters: by shipping no game files, no keys and no circumvention, and by requiring users to build from their own copies, the project tries to stay on the careful side of a line that console-emulation efforts have repeatedly had to navigate. And even if it never boots, a complete RDNA2-to-SPIR-V translator covering 26,503 shaders and validated across more than 30 GPU and driver combinations is a substantial piece of graphics engineering on its own.
- #gta-vi
- #static-recompilation
- #vulkan
- #xbox
- #open-source