How belobug/victory-belobug-amd works
VIctory is a work-in-progress Windows runtime for running a user-supplied console game on AMD Radeon hardware. The principal path is to invoke the CLI with the game executable, prepare and load it, provide console services through HLE, translate console shaders and record GPU work for host D3D12, then present frames. Separate branches cover persistent saves and shader diagnostics. The README documents capabilities and observed behavior; many runtime files were not sampled, so unverified internal connections are omitted or shown as dashed.
Main entry points: run.rs Run command · main.rs Victory CLI · list.rs Command lists and queues · pipeline.rs GPU pipelines
Components 24
CLI and configuration
- Victory CLI
apps/victory/src/main.rs - Run command
apps/victory/src/run.rs - Inspect tools
apps/victory/src/inspect.rs - Translate command
apps/victory/src/translate.rs - Runtime policy
crates/victory-core/src/policy.rs
Game execution
- PE image handling
crates/victory-pe/src/image.rs - Game loading
crates/victory-loader/src/windows.rs
Console compatibility
- HLE runtime
crates/victory-hle/src/runtime.rs - Console services
crates/victory-hle/src/modules - Save storage
crates/victory-hle/src/modules/storage.rs
GPU and shaders
- Host D3D12 device
crates/victory-gpu/src/host.rs - Command lists and queues
crates/victory-gpu/src/list.rs - Resources and copies
crates/victory-gpu/src/resource.rs - Descriptor heaps
crates/victory-gpu/src/descriptor/host.rs - GPU pipelines
crates/victory-gpu/src/pipeline.rs - Shader translation
crates/victory-shader/src/native.rs - DXIL emission
crates/victory-shader/src/emit/mod.rs - GFX10 decoding
crates/victory-shader/src/gfx10/mod.rs - Shader cache
crates/victory-pipeline/src/cache.rs - Ambient lighting
crates/victory-gpu/src/ambient.rs
Formats and diagnostics
- Game formats
crates/victory-formats/src - Runtime census
apps/victory/src/census.rs
Other components
- Game owner
- Game executable
Connections 25
- Game owner → Victory CLI: invokes
- Game owner → Game executable: supplies
- Victory CLI → Run command: dispatches
apps/victory/src/main.rs - Run command → Game executable: loads
- Run command → Game loading: starts
- Game loading → PE image handling: maps image
- Run command → HLE runtime: initializes
- HLE runtime → Console services: provides services
crates/victory-hle/src/modules/storage.rs - Console services → Save storage: serves saves
crates/victory-hle/src/modules/storage.rs - Save storage → Game executable: exposes storage
- Run command → Host D3D12 device: runs on
- Command lists and queues → Host D3D12 device: submits work
crates/victory-gpu/src/list.rs - Command lists and queues → Resources and copies: records resource use
crates/victory-gpu/src/list.rs - Command lists and queues → Descriptor heaps: uses descriptors
crates/victory-gpu/src/descriptor/host.rs - Command lists and queues → GPU pipelines: draws with
crates/victory-gpu/src/list.rs - GPU pipelines → Shader translation: translates shaders
- Shader translation → DXIL emission: emits DXIL
crates/victory-shader/src/emit/mod.rs - Shader translation → GFX10 decoding: decodes ISA
- GPU pipelines → Shader cache: reuses entries
- GPU pipelines → Ambient lighting: applies lighting
crates/victory-gpu/src/pipeline.rs - Victory CLI → Inspect tools: dispatches
apps/victory/src/main.rs - Victory CLI → Translate command: dispatches
apps/victory/src/main.rs - Victory CLI → Runtime census: dispatches
apps/victory/src/main.rs - Run command → Runtime policy: reads policy
- Run command → Game formats: uses formats