Snapshot: 2026-11-24 Menus: 30 FPS Mesh Shaders: 8,765 / 8,765
Official Discord / .EXE: None — Scam Check →

Technical Architecture Deep Dive · 11 Rust Crates

Marvisak/VIctory — Project Overview, Rust Architecture & Crate Reference

Marvisak/VIctory is an 11-crate Rust compatibility runtime that executes Xbox Series X|S x86-64 binaries unchanged inside a Windows 10/11 process, pairing high-level xgameruntime emulation with an ahead-of-time SSA-to-DXIL Shader Model 6.6 compiler.

Creator / Maintainer
Marvisak (GitHub)
Project Type
In-Process x86-64 Compatibility Layer
Workspace Structure
11 Rust Crates + Test Probe
Graphics Backend
Xbox D3D12.X → Windows D3D12 SM 6.6
Network Behavior
100% Offline by Design
Save Data Path
%LOCALAPPDATA%\victory\data
Marvisak/VIctory 11-crate Rust architecture diagram showing loader, HLE, GPU and DXIL shader pipeline
Figure 1: Data flow across Marvisak/VIctory — keeping user-supplied files outside the repo while caching converted DXIL shaders and 27,000 D3D12 pipelines on disk.

What Is Marvisak/VIctory?

Marvisak/VIctory is an open-source systems engineering project written in Rust by developer Marvisak with a concise stated goal: "Runs Grand Theft Auto VI (Xbox Series X|S) natively on Windows, from files the user supplies." Rather than emulating a foreign CPU instruction set or statically decompiling console binaries into C++, Marvisak/VIctory acts as an in-process Windows compatibility layer — conceptually closer to how Wine/Proton translates Windows APIs on Linux, adapted here for Xbox Series X|S system interfaces (xgameruntime.dll and Direct3D 12.X) on a 64-bit Windows 10/11 host.

Because the Xbox Series X|S runs standard x86-64 instructions with AVX2 extensions, the title's compiled machine code executes directly inside the host Windows process without CPU emulation overhead. Meanwhile, the runtime intercepts system imports, virtualizes console storage paths, decodes proprietary texture/audio formats, and recompiles console GPU shader containers into standard PC Direct3D 12 Shader Model 6.6 DXIL.

Complete 11-Crate Workspace Breakdown

According to upstream docs/architecture.md, the Cargo workspace is cleanly modularized into 11 crates (plus an internal hle-probe test fixture). Notably, every crate except victory-game is platform-generic and can be tested against general Xbox Series software without title-specific assumptions:

Crate / Path Architectural Responsibility
victory-core Workspace configuration (victory.toml), logging setup (VICTORY_LOG), and the asset-policy guard
victory-pe Read-only PE32+ executable analysis and import-library (import.lib) inspection
victory-loader Prepares, maps, binds, redirects TLS slot 0, installs crash unwinding (crashes.log), and starts the title image
victory-hle High-level emulation of Xbox console runtime APIs (xgameruntime), virtual drive mapping, and HostPolicy pass-through
victory-gpu Translates Xbox Direct3D 12.X objects, command lists, root signatures, and GPU heaps onto host Windows Direct3D 12
victory-shader Decompiles Xbox shader containers and SGD5 packs into SSA IR, structurizes lane masks, and emits DXIL SM 6.6
victory-formats Handles console GPU texture layouts (tiling/detiling), parallel zlib and BCPack decompression, and XMA/Opus audio codecs
victory-pipeline Defines the converter trait and content-addressed disk cache for ahead-of-time and on-demand asset/shader conversion
victory-game Isolates Grand Theft Auto VI-specific archive formats (shaders.rpf), build identities, and targeted runtime hooks
apps/victory Command-line front-end (inspect, census, lib-exports, shader-info, translate, run, config)
xtask Developer hygiene automation and Git pre-commit hooks preventing copyrighted files from entering the repository

How Import Resolution & TLS Mapping Work Inside victory-loader

When you execute victory run <exe> --execute, Marvisak/VIctory maps the console PE32+ executable into memory alongside its dependent DLLs. Because a Windows process gives static Thread-Local Storage (TLS) slot 0 to the host victory.exe runner itself — whereas the console title's compiled machine code expects its own static TLS at slot 0 — victory-loader::tls rewrites and redirects those TLS accesses seamlessly.

For every dll!function imported by the title, the loader resolves symbols in strict four-step priority order:

  1. Custom HLE Override (victory-hle::modules): Always wins first. Console-exclusive libraries like xgameruntime.dll return pseudo handles on LoadLibrary* and hand out offline console user, license, package, and save-data interfaces via QueryApiImpl.
  2. Host Windows Pass-Through (HostPolicy): Shared standard Win32 APIs allowed by policy pass straight to the host OS for native speed, while path-taking file functions (kernel32 and C/C++ runtime) rewrite console virtual drive paths to folders under %LOCALAPPDATA%\victory\data.
  3. Title-Shipped Companion DLLs: Libraries shipped next to the executable (such as XboxBvhBuilder.dll or amd_fidelityfx_upscaler_xbox.dll) are mapped into the process just like the main binary if neither step 1 nor step 2 serves them.
  4. Generated Diagnostic Stubs: Any unimplemented import receives a named stub that either logs once and returns 0 (--unimplemented zero) or breaks immediately into the debugger (--unimplemented trap). Running victory census <exe> --missing previews this entire classification without executing title code.

How victory-shader Translates Console GPU Code to DXIL SM 6.6

The hardest engineering challenge in Marvisak/VIctory is translating low-level console GPU machine instructions into valid Direct3D 12 Shader Model 6.6 DXIL containers:

  • SSA Construction & EXEC Structurization: victory_shader::ir::build lifts native GPU instructions 1:1 into Static Single Assignment (SSA) form. Next, victory_shader::structure eliminates raw hardware EXEC wave masks — converting lane masks into per-lane booleans and wave-wide mask checks into structured branches.
  • Bounded Register-Relative Moves & Waterfall Loops: victory_shader::range::build proves index bounds on v_movrel* instructions, while victory_shader::resource traces descriptors and v_readfirstlane_b32 waterfall loops back to root parameters so non-uniform descriptor heap indexing works in a single pass on PC GPUs.
  • Current Scale: As tracked on our VIctory status page, this compiler already converts 8,765 / 8,765 mesh shaders, 12,550 / 12,592 vertex/pixel shaders, and 2,579 / 2,637 compute shaders, leaving ~195 merged geometry stages and ~100 specialized programs still in progress.

To try compiling the workspace or inspecting shader disassembly (victory shader-info --disasm), continue to our GTA VI port GitHub guide and Windows build & install tutorial.

Verified Answers

Marvisak/VIctory — Architecture & Project FAQ

Direct, source-verified answers cross-checked against upstream Marvisak/VIctory commits and architecture specs.

View Full Subsystem Matrix →

Who created Marvisak/VIctory?

Marvisak is the systems developer who authored and maintains the open-source Marvisak/VIctory Rust compatibility runtime on GitHub. Marvisak publishes code directly to GitHub without operating an official Discord server or paid tiers.

Is Marvisak/VIctory an emulator or a static recompiler?

Unlike an emulator that virtualizes an entire console CPU and OS, or a static recompiler that translates binaries into C++ source files, Marvisak/VIctory maps the native x86-64 Xbox Series binary directly into a Windows process and translates only console-specific OS and Direct3D 12.X calls.

Can Marvisak/VIctory run other Xbox Series titles besides GTA VI?

Ten of the eleven crates (victory-core, victory-pe, victory-loader, victory-hle, victory-gpu, victory-shader, victory-formats, victory-pipeline, apps/victory, and xtask) are generic Xbox Series platform components. Only victory-game holds Grand Theft Auto VI-specific format readers and hooks.

Does Marvisak/VIctory connect to Rockstar servers or the internet?

Yes. In victory-hle, console online APIs intentionally answer as an offline console so the title never reaches external networks, while profile state and game saves are stored locally under %LOCALAPPDATA%\victory\data.

What technical milestones remain in Marvisak/VIctory?

The remaining blockers are world lighting (surfaces currently render unlit), roughly 195 merged geometry shaders plus ~100 other untranslated shaders, slow 1-2s world frame execution, and missing D3D12 features like hardware queries, depth bounds, and HDR.