How marvisak/victory works
VIctory runs user-supplied Xbox Series X|S game files as a native Windows process, implementing console services and translating console GPU work to host D3D12. The main workflow is to launch the title, satisfy its runtime and file requests, and execute its rendering through shader translation and GPU submission. The graph also preserves documented formats, persistence, and shader-cache capabilities. Some subsystem links are documented only in the README; unsampled implementation details are not inferred.
Main entry points: host.rs Host D3D12 · main.rs CLI commands · dstorage.rs DirectStorage · windows.rs Windows loader
Components 26
Command and loading
- CLI commands
apps/victory/src/main.rs - PE image parser
crates/victory-pe/src/image.rs - Windows loader
crates/victory-loader/src/windows.rs - Title process
Console runtime services
- HLE runtime
crates/victory-hle/src/runtime.rs - Game runtime APIs
crates/victory-hle/src/modules/xgameruntime.rs - Title file services
crates/victory-hle/src/modules/files.rs - Async requests
crates/victory-hle/src/modules/xasync.rs - DirectStorage
crates/victory-hle/src/modules/dstorage.rs
Shader translation
- Shader commands
apps/victory/src/shader.rs - GFX10 decoder
crates/victory-shader/src/gfx10/mod.rs - Shader IR
crates/victory-shader/src/ir.rs - DXIL lowering
crates/victory-shader/src/emit/lower.rs
GPU execution
- GPU device
crates/victory-gpu/src/device.rs - Host D3D12
crates/victory-gpu/src/host.rs - Frame presentation
crates/victory-gpu/src/frame.rs - Command lists
crates/victory-gpu/src/list.rs - GPU queue
crates/victory-gpu/src/queue.rs - GPU resources
crates/victory-gpu/src/resource.rs - Resource shadows
crates/victory-gpu/src/shadow.rs - Texture handling
crates/victory-gpu/src/texture.rs - GPU objects
crates/victory-gpu/src/object.rs - Pipeline library
crates/victory-gpu/src/pipeline/library.rs
Formats and caches
- BCPack decoding
crates/victory-formats/src/bcpack.rs - Pipeline cache
crates/victory-pipeline/src/cache.rs
Other components
- Game user
Connections 28
- Game user → CLI commands: runs commands
apps/victory/src/main.rs - CLI commands → Windows loader: launches title
README.md - CLI commands → PE image parser: inspects images
apps/victory/src/main.rs - Windows loader → Title process: loads executable
README.md - Title process → HLE runtime: requests services
README.md - HLE runtime → Game runtime APIs: registers APIs
- Game runtime APIs → Async requests: uses async APIs
crates/victory-hle/src/modules/xgameruntime.rs - Title process → Title file services: reads title data
README.md - Title process → DirectStorage: submits reads
crates/victory-hle/src/modules/dstorage.rs - DirectStorage → Async requests: completes requests
crates/victory-hle/src/modules/dstorage.rs - DirectStorage → Title file services: reads files
crates/victory-hle/src/modules/dstorage.rs - DirectStorage → BCPack decoding: decodes BCPack
- CLI commands → Shader commands: runs shader tools
apps/victory/src/main.rs - Shader commands → GFX10 decoder: translates shaders
README.md - GFX10 decoder → Shader IR: decodes instructions
crates/victory-shader/src/ir.rs - DXIL lowering → Shader IR: lowers IR
crates/victory-shader/src/emit/lower.rs - Title process → Host D3D12: issues GPU work
README.md - Host D3D12 → GPU device: creates device
- Host D3D12 → Frame presentation: presents frames
crates/victory-gpu/src/host.rs - Host D3D12 → Command lists: records commands
crates/victory-gpu/src/host.rs - Host D3D12 → GPU queue: submits work
crates/victory-gpu/src/host.rs - Host D3D12 → GPU resources: creates resources
crates/victory-gpu/src/host.rs - GPU resources → Resource shadows: uses host copies
crates/victory-gpu/src/resource.rs - Host D3D12 → Texture handling: handles textures
crates/victory-gpu/src/host.rs - Host D3D12 → GPU objects: manages objects
crates/victory-gpu/src/host.rs - Host D3D12 → Pipeline library: loads pipelines
crates/victory-gpu/src/pipeline/host.rs - Pipeline library → Pipeline cache: caches pipelines
- Title process → Pipeline cache: uses shader cache
README.md