How avatarmanz/victory-7900xtx works
VIctory is a Windows compatibility layer that runs a user-supplied Xbox Series title, with this fork focused on AMD RDNA 3 performance. The main workflow is launching the title through the CLI, preparing/loading its executable and emulating console services, while the D3D12 backend translates shaders and executes graphics work. Separate CLI commands inspect, translate, and warm shaders and pipelines. The README documents the major performance features, but several GPU and loader connections are not shown in the excerpts; those relationships are omitted or marked unverified rather than inferred as direct calls.
Main entry points: main.rs Victory CLI · run.rs Run command · ir.rs Shader IR · resource.rs Resource tracking
Components 26
CLI and preparation
- Victory CLI
apps/victory/src/main.rs - Run command
apps/victory/src/run.rs - Shader tools
apps/victory/src/translate.rs - Pipeline warmup
apps/victory/src/warm.rs
Title loading
- PE image handling
crates/victory-pe/src/image.rs - Title loader
crates/victory-loader/src/prepare.rs
Console services
- HLE runtime
crates/victory-hle/src/runtime.rs - Game runtime APIs
crates/victory-hle/src/modules/xgameruntime.rs - Async services
crates/victory-hle/src/modules/xasync.rs - Title storage
crates/victory-hle/src/modules/storage.rs - DirectStorage
crates/victory-hle/src/modules/dstorage.rs
Graphics backend
- D3D12 host
crates/victory-gpu/src/host.rs - GPU queues
crates/victory-gpu/src/queue.rs - Draw submission
crates/victory-gpu/src/draw.rs - Resource tracking
crates/victory-gpu/src/resource.rs - Host descriptors
crates/victory-gpu/src/descriptor/host.rs - Buffer shadows
crates/victory-gpu/src/shadow.rs - Texture uploads
crates/victory-gpu/src/texture.rs - Pipeline creation
crates/victory-gpu/src/pipeline/library.rs - Frame capture/replay
crates/victory-gpu/src/capture.rs
Shader translation
- GFX10 decoding
crates/victory-shader/src/gfx10/mod.rs - Shader IR
crates/victory-shader/src/ir.rs - Shader resources
crates/victory-shader/src/resource.rs - DXIL emission
crates/victory-shader/src/emit/mod.rs - Native shaders
crates/victory-shader/src/native.rs
Other components
- Title owner
Connections 26
- Title owner → Victory CLI: supplies files
README.md - Victory CLI → Run command: dispatches run
apps/victory/src/main.rs - Victory CLI → Shader tools: dispatches translate
apps/victory/src/main.rs - Victory CLI → Pipeline warmup: dispatches warm
apps/victory/src/main.rs - Run command → Title loader: loads title
- Title loader → PE image handling: prepares image
crates/victory-pe/src/image.rs - Run command → HLE runtime: starts runtime
- HLE runtime → Game runtime APIs: registers APIs
- Game runtime APIs → Async services: uses async APIs
crates/victory-hle/src/modules/xgameruntime.rs - Game runtime APIs → Title storage: registers storage
crates/victory-hle/src/modules/xgameruntime.rs - DirectStorage → Async services: uses async APIs
crates/victory-hle/src/modules/dstorage.rs - Run command → D3D12 host: starts graphics
- Resource tracking → Host descriptors: updates descriptors
crates/victory-gpu/src/resource.rs - Resource tracking → Texture uploads: tracks textures
crates/victory-gpu/src/resource.rs - Resource tracking → Buffer shadows: uses shadows
crates/victory-gpu/src/resource.rs - D3D12 host → GPU queues: submits work
- Draw submission → Pipeline creation: uses pipelines
crates/victory-gpu/src/pipeline/host.rs - Draw submission → Host descriptors: binds descriptors
crates/victory-gpu/src/descriptor/host.rs - Frame capture/replay → GPU queues: records queues
crates/victory-gpu/src/capture.rs - Shader tools → GFX10 decoding: translates shaders
- GFX10 decoding → Shader IR: decodes to IR
crates/victory-shader/src/ir.rs - Shader IR → Shader resources: analyzes resources
crates/victory-shader/src/resource.rs - Shader IR → DXIL emission: emits DXIL
crates/victory-shader/src/emit/mod.rs - Native shaders → Shader IR: uses shader IR
crates/victory-shader/src/native.rs - Pipeline creation → DXIL emission: consumes translated shaders
- Pipeline warmup → Pipeline creation: warms pipelines