How trustno1-coder/victory-nvidia works
VIctory is an Xbox Series title compatibility layer that runs a user-supplied game build natively on Windows, tuned for NVIDIA RTX GPUs. The principal workflow is launching the Victory front end, loading the title and emulating its console services, translating its shaders, then executing graphics through host D3D12. Supporting branches include storage and asynchronous I/O, frame generation and upscaling, and in-game settings and telemetry. The README documents product capabilities; some internal links are dashed because the relevant implementation excerpts were not provided.
Main entry points: main.rs Victory front end · draw.rs Draw execution · xgameruntime.rs Game runtime APIs · prepare.rs Title loader
Components 17
Launch and loading
- Victory front end
apps/victory/src/main.rs - Title loader
crates/victory-loader/src/prepare.rs - PE image handling
crates/victory-pe/src/image.rs
Console services
- Console API emulation
crates/victory-hle/src/runtime.rs - Game runtime APIs
crates/victory-hle/src/modules/xgameruntime.rs - DirectStorage
crates/victory-hle/src/modules/dstorage.rs - Persistent storage
crates/victory-hle/src/modules/storage.rs
Graphics translation
- Shader decoding
crates/victory-shader/src/gfx10/mod.rs - Shader IR
crates/victory-shader/src/ir.rs - DXIL emission
crates/victory-shader/src/emit/mod.rs - GPU resources
crates/victory-gpu/src/resource.rs - Host descriptors
crates/victory-gpu/src/descriptor/host.rs - Draw execution
crates/victory-gpu/src/draw.rs - Pipeline states
crates/victory-gpu/src/pipeline.rs
Runtime features
- Upscaling and frame generation
crates/victory-gpu/src/streamline.rs - In-game menu and stats
crates/victory-gpu/src/host/menu.rs
Other components
- Player
Connections 16
- Player → Victory front end: launches
- Victory front end → Title loader: starts title
- Title loader → PE image handling: prepares image
- Victory front end → Console API emulation: starts runtime
- Console API emulation → Game runtime APIs: dispatches APIs
- Game runtime APIs → DirectStorage: registers interfaces
crates/victory-hle/src/modules/xgameruntime.rs - Game runtime APIs → Persistent storage: registers interfaces
crates/victory-hle/src/modules/xgameruntime.rs - Victory front end → Shader decoding: translates shaders
- Shader decoding → Shader IR: decodes to
crates/victory-shader/src/ir.rs - Shader IR → DXIL emission: emits DXIL
crates/victory-shader/src/emit/mod.rs - Victory front end → Draw execution: runs graphics
- Draw execution → Pipeline states: uses pipelines
crates/victory-gpu/src/draw.rs - Draw execution → Host descriptors: reads descriptors
crates/victory-gpu/src/draw.rs - Draw execution → GPU resources: uses resources
crates/victory-gpu/src/draw.rs - Victory front end → Upscaling and frame generation: offers frame generation
- Victory front end → In-game menu and stats: offers menu and stats