repowisemarvisak/victory

Architecture of marvisak/victory

marvisak/victory is 180 source files holding 8,469 symbols across 3 modules, written mainly in Rust. The largest module is crates, with 148 files, and 12 files are entry points into the dependency graph.

How victory fits together

Input enters through apps/victory/src/main.rs and apps/victory/src/run.rs, the command-line entry points that launch a game executable and inspect, scan and pre-translate its files. The crates/victory-hle crate answers the title's calls into console system libraries with Rust functions on the host, so the console's own library code never runs. The crates/victory-shader crate translates console GPU shader programs into DXIL, the bytecode Direct3D 12 runs, and returns a HostShader. The crates/victory-gpu crate runs the title's Direct3D 12 calls on the host's real Direct3D 12 device. The xtask directory holds the task runner that enforces the asset policy keeping game content out of commits, and its policy subcommand runs from the pre-commit hook. Everything derived from the game files is kept outside the repository.

Largest modules

  • crates: 148 files and 100,579 lines of code
  • apps: 10 files and 2,736 lines of code
  • xtask: 2 files and 302 lines of code

Documentation

Repowise documents victory in 223 pages generated from the source, 17 of them written explanations of the repository and its modules. Module guides include:

  • apps/victory/src: Application Entry Points
  • xtask/src: Build Task Runner and Policy Checks
  • crates: Crates Packages (4)
  • crates/victory-gpu/src: GPU Device and Descriptor Management

More on victory: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos