How iceboerg00/larp-amd works
Larp is a Windows compatibility layer that runs a user-supplied Xbox Series title natively. The principal workflow is to launch the title through the CLI, prepare and run its executable, emulate console runtime services, translate its graphics work for the host GPU, and render frames. Other major capabilities include input and persistent storage, DirectStorage, audio-format support, shader caching, localization, and optional mods. The graph combines README-described behavior with sampled code and source-index references; dashed, uncited edges mark relationships not directly verified in the excerpts.
Main entry points: draw.rs GPU emulation · pipeline.rs Pipeline handling · xgameruntime.rs Console API runtime · hooks.rs Title hooks
Components 22
Launch and adaptation
- CLI commands
apps/larp/src/main.rs - Title execution
apps/larp/src/run.rs - Executable loader
crates/larp-loader/src/prepare.rs - Title hooks
apps/larp/src/hooks.rs - Game-specific hooks
crates/larp-game/src/hooks.rs
Console runtime
- Console API runtime
crates/larp-hle/src/modules/xgameruntime.rs - Async services
crates/larp-hle/src/modules/xasync.rs - Input mapping
crates/larp-hle/src/mapmouse.rs - Persistent storage
crates/larp-hle/src/modules/storage.rs - DirectStorage
crates/larp-hle/src/modules/dstorage.rs
Graphics translation
- GPU emulation
crates/larp-gpu/src/draw.rs - GPU resources
crates/larp-gpu/src/resource.rs - Descriptor heaps
crates/larp-gpu/src/descriptor/host.rs - Pipeline handling
crates/larp-gpu/src/pipeline.rs - Shader translation
crates/larp-shader/src/native.rs - Pipeline cache
crates/larp-pipeline/src/cache.rs
User capabilities
- Settings and language
crates/larp-core/src/i18n.rs - Mods
apps/larp/src/mods.rs - Audio formats
crates/larp-formats/src/xma.rs
Other components
- User
- Game title
- Host D3D12
Connections 21
- User → CLI commands: runs commands
README.md - CLI commands → Title execution: dispatches run
apps/larp/src/main.rs - Title execution → Executable loader: prepares executable
- Executable loader → Game title: maps and runs
- Title hooks → Game-specific hooks: uses hook table
apps/larp/src/hooks.rs - Title hooks → GPU emulation: adapts graphics calls
- Game title → Console API runtime: calls console APIs
- Console API runtime → Async services: dispatches async APIs
crates/larp-hle/src/modules/xgameruntime.rs - Game title → Input mapping: sends input
- Game title → Persistent storage: reads and writes
crates/larp-hle/src/modules/storage.rs - Game title → DirectStorage: submits requests
- GPU emulation → GPU resources: uses resources
crates/larp-gpu/src/draw.rs - GPU emulation → Descriptor heaps: reads descriptors
crates/larp-gpu/src/draw.rs - GPU emulation → Pipeline handling: binds pipelines
crates/larp-gpu/src/draw.rs - Pipeline handling → Shader translation: translates shaders
- Pipeline handling → Pipeline cache: uses cache
- Pipeline handling → Host D3D12: creates host pipelines
crates/larp-gpu/src/pipeline.rs - GPU emulation → Host D3D12: renders commands
- User → Settings and language: configures language
README.md - User → Mods: loads mods
README.md - Console API runtime → Audio formats: provides audio support