How readmet3xt-lab/foxhound works
foxhound is a Windows compatibility layer that runs a user-supplied Xbox Series title natively, translating console behavior into host Windows and Direct3D 12 behavior. The main workflow is launch the title, load and prepare its executable, emulate console APIs, translate shaders and issue GPU work; optional commands inspect, translate, and prewarm shaders and pipelines. The README also documents NVIDIA DLSS/Frame Generation, 1440p changes, and frame replay/capture. Source excerpts support several internal GPU and HLE relationships; some launch-to-runtime wiring is not shown, so those links are omitted or marked unverified.
Main entry points: run.rs Title runner · main.rs CLI commands · draw.rs Draw execution · xgameruntime.rs Game runtime APIs
Components 26
Launcher and tools
- CLI commands
apps/victory/src/main.rs - Title runner
apps/victory/src/run.rs - Shader commands
apps/victory/src/translate.rs - Pipeline warmup
apps/victory/src/warm.rs
Console compatibility
- Executable loading
crates/victory-loader/src/prepare.rs - PE image handling
crates/victory-pe/src/image.rs - Console API emulation
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 - Console formats
crates/victory-formats/src/lib.rs
GPU translation
- D3D12 GPU layer
crates/victory-gpu/src/lib.rs - Draw execution
crates/victory-gpu/src/draw.rs - GPU resources
crates/victory-gpu/src/resource.rs - Descriptor heaps
crates/victory-gpu/src/descriptor/host.rs - Host pipelines
crates/victory-gpu/src/pipeline.rs
Shader translation
- Shader IR
crates/victory-shader/src/ir.rs - GFX10 decoder
crates/victory-shader/src/gfx10/mod.rs - DXIL emission
crates/victory-shader/src/emit/mod.rs - Shader resource analysis
crates/victory-shader/src/resource.rs
Enhancements and diagnostics
- Frame capture
crates/victory-gpu/src/capture.rs - Frame replay
crates/victory-gpu/src/replay/play.rs - DLSS integration
crates/victory-gpu/src/streamline.rs - 1440p profile
apps/victory/src/native_1440p.rs
Other components
- Title owner
Connections 26
- Title owner → CLI commands: invokes
README.md - CLI commands → Title runner: dispatches
apps/victory/src/main.rs - CLI commands → Shader commands: dispatches
apps/victory/src/main.rs - CLI commands → Pipeline warmup: dispatches
apps/victory/src/main.rs - Title runner → Executable loading: loads title
- Executable loading → PE image handling: prepares image
crates/victory-pe/src/image.rs - Title runner → Console API emulation: starts runtime
- Console API emulation → Game runtime APIs: registers APIs
- Game runtime APIs → Async services: uses services
crates/victory-hle/src/modules/xgameruntime.rs - Game runtime APIs → Title storage: registers storage
crates/victory-hle/src/modules/xgameruntime.rs - Title storage → Async services: completes requests
crates/victory-hle/src/modules/storage.rs - Title runner → DirectStorage: emulates file queues
- Title runner → D3D12 GPU layer: initializes graphics
- D3D12 GPU layer → Draw execution: executes draws
- Draw execution → Descriptor heaps: reads descriptors
crates/victory-gpu/src/draw.rs - Draw execution → GPU resources: uses resources
crates/victory-gpu/src/draw.rs - Draw execution → Host pipelines: binds pipelines
crates/victory-gpu/src/draw.rs - Frame capture → GPU resources: records resources
crates/victory-gpu/src/capture.rs - Frame capture → Frame replay: supports replay
crates/victory-gpu/src/replay/play.rs - Title runner → DLSS integration: optionally enables
README.md - Title runner → 1440p profile: applies profile
README.md - Shader commands → Shader IR: translates shaders
README.md - Shader IR → GFX10 decoder: decodes instructions
crates/victory-shader/src/ir.rs - Shader IR → DXIL emission: emits DXIL
crates/victory-shader/src/emit/mod.rs - DXIL emission → Shader resource analysis: analyzes resources
crates/victory-shader/src/emit/mod.rs - Pipeline warmup → Host pipelines: prewarms host
README.md