The Leonida project, now maintained under the ubiquitarianism GitHub account, has made significant technical progress in statically recompiling GTA VI from the Xbox Series X version for PC. Originally created by NotRexed, development continues with full commit history after the original author stepped away. The project remains a proof of concept: the game does not boot, and nothing is playable yet. However, core components — including complete shader translation, model and texture export, and audio unpacking — are functional.
Leonida is not an emulator or piracy tool. It requires a user’s own legally obtained copy of GTA VI for Xbox Series X (version 1.0.2.1), with game files already decrypted and accessible on disk. The repository provides no keys, executables, or decryption methods. All outputs — including translated shaders, extracted assets, runtime files, and saves — are generated locally from the user’s copy and must remain on their machine.
How Leonida Works: Static Recompilation, Not Emulation
Leonida uses static recompilation, not runtime interpretation. Since the Xbox Series X CPU uses x86-64 architecture like PCs, game code can be adapted to run natively. The project reimplements Xbox system software interfaces and translates GPU shaders from native RDNA2 bytecode into SPIR-V for Vulkan, enabling direct execution on PC GPUs with minimal overhead.
All 26,503 shaders — 2,236 vertex, 12,101 pixel, 2,689 compute, 9,282 mesh, and 195 geometry — have been disassembled, translated to SPIR-V, and validated using spirv-val. Two initial validation failures on Windows were resolved in commit dcd8ecf. The translation relies on LLVM 23.1.5 (Linux) and 23.1.3 (Windows), with --wave64-emulate enabled by default for cross-half wave operations, which remain approximate.
Models (382,781 total, including 343,327 from levels.rpf) are exported as OBJ files with UVs and material references. Textures are decoded from BCPack (BC1, BC3, BC4, BC5 supported; BC6H and BC7 require local history tables not shipped with the project) and output as DDS. Audio banks (AWC) are unpacked: Opus streams become Ogg Opus, PCM as WAV, and XMA2 decoded via ffmpeg. Music configuration includes 1,589 records with durations and stream IDs, though per-track start offsets are missing.
Platform Support and Build Requirements
Leonida supports builds on Windows, Linux, and macOS (Apple Silicon), though only the Windows runtime is fully implemented. On Linux, the runtime cross-compiles via clang-cl and xwin, and runs under Wine or Proton with Vulkan (RADV or NVIDIA). On macOS, it runs under Wine variants like CrossOver or via FEX, with limitations: no geometry shaders, no VK_EXT_mesh_shader, 32-wide subgroups (wave64 emulated), and MoltenVK float-handling quirks (NaN comparisons, -0, NoContraction).
Building requires:
– A local copy of GTA VI for Xbox Series X (v1.0.2.1)
– Windows 10/11 x64 (for native runtime); Linux/macOS for tooling
– ~400 GiB (≈430 GB) free disk space for full build
– Python 3.12+ (with PATH)
– .NET 8 SDK
– Vulkan SDK (for spirv-as, spirv-val)
– LLVM 21+ with AMDGPU target (official Windows builds lack this; alternatives include conda, WSL, or local build via build_llvm_mc.ps1)
– Visual Studio 2022 with C++ tools and Windows SDK 10.0.26100+
– ffmpeg on PATH (required for --wav, optional otherwise)
The build script (Build.bat/Build.sh) automatically locates the game folder in common paths (Downloads, Desktop, OneDrive, etc.), checks prerequisites, and resumes interrupted builds. Users with limited storage can skip asset extraction using --stages check,shaders,runtime, reducing space needs to ~30 GB. Output and work directories can be redirected via --work and --out.
What’s Missing: Booting and Final Integration
Despite progress, GTA VI cannot boot. The PE loader, CRT startup, heap, thread, and file shims are implemented, along with GDK import shims and a GameInput shim via SDL3 (supporting rumble, DualSense triggers, lightbar). D3D12 calls are logged via --trace-d3d12, but the runtime has not been tested against the actual game executable.
The D3D12-to-Vulkan layer supports presentation queues (30/32 slots detected) and upload memory mapping (via AllocateUploadMemory), but the descriptor-table model and command list tail processing are incomplete. Ray tracing uses the console’s XDXR BVH4 layout (default) or Vulkan KHR structures (LEONIDA_RT_AS=khr). BLAS/TLAS building, refit, clone, and compaction are implemented and tested against CPU references. The game’s *_bvh4.rpf packs are confirmed as dehydrated BLASes, but it’s unknown whether the game rehydrates them or rebuilds — an open issue (#313).
GPU test results are tracked in issue #166. The project includes tools to generate a progress dashboard (python -I tools/progress_dashboard.py --out <folder>), which measures test coverage, shader validation, and corpus counts.
What it means
For founders and developers, Leonida demonstrates the potential of static recompilation to reduce dependency on proprietary platforms. By enabling local execution and data control, it contrasts with cloud gaming and vendor-locked ecosystems. The project prioritises transparency and user ownership — values increasingly relevant in the UK, UAE, US, and Kazakhstan, where digital sovereignty and platform flexibility are growing concerns.
However, legal and technical barriers remain. The work depends on reverse-engineering unpublished console behaviours, creating fragility and IP risks. The absence of a runnable executable halts progress, and distribution of generated assets would violate copyright.
This is not a product. Users should not expect a playable release. Yet the project advances graphics research — particularly in Vulkan interoperability, shader translation, and asset pipeline design. It reaffirms a principle: true platform independence requires access, time, and sustained technical effort. For now, Leonida is a powerful, community-driven proof of concept.