How ivall/xcl works
XCL runs unpacked Xbox Series X|S games on Windows: native x64 title code calls XCL’s console-API implementations, while console GPU programs are translated and run through PC D3D12. The graph follows that compatibility workflow and preserves the documented storage, runtime, graphics, media, and inspection capabilities. README statements support the broad product flow; source-index references and excerpts support selected internal links. Several runtime modules were not sampled, so their detailed call relationships are omitted rather than assumed.
Main entry points: real.rs D3D12.X objects · uma.rs Shared graphics memory · launcher.rs Launcher and host · kernelx.rs Kernel compatibility
Components 33
Boot and loading
- Launcher and host
crates/xcl/src/launcher.rs - PE loader
crates/xcl/src/loader.rs - Import resolver
crates/xcl/src/resolver.rs - Boot configuration
crates/xcl/src/config.rs - Runtime state
crates/xcl/src/state.rs
Console services
- Kernel compatibility
crates/xcl/src/hle/kernelx.rs - Lazy page mapping
crates/xcl/src/hle/kernelx/lazy.rs - XGameRuntime
crates/xcl/src/hle/xgameruntime/mod.rs - GameInput
crates/xcl/src/hle/gameinput.rs - Audio codecs
crates/xcl/src/hle/xaudio2.rs - Virtual filesystem
crates/xcl/src/vfs.rs - DirectStorage and BCPack
crates/xcl/src/hle/dstorage.rs
GPU translation
- Shader capture
crates/xcl/src/gpu/shader.rs - RDNA2 decoding
crates/xcl/src/gpu/rdna2.rs - Shader recompiler
crates/xcl/src/gpu/recomp/mod.rs - HLSL emission
crates/xcl/src/gpu/recomp/emit.rs - DXC compilation
crates/xcl/src/gpu/recomp/dxc.rs - Pipeline creation
crates/xcl/src/gpu/recomp/pso.rs - GPU execution
crates/xcl/src/gpu/recomp/runner.rs - Texture layout
crates/xcl/src/gpu/texture.rs - Texture tiling
crates/xcl/src/gpu/tiling_tables.rs - Ray tracing BVH
crates/xcl/src/gpu/bvh.rs
D3D12 backend
- Shared graphics memory
crates/xcl/src/gpu/uma.rs - D3D12.X objects
crates/xcl/src/hle/d3d12x/real.rs - Console command lists
crates/xcl/src/hle/d3d12x/list_x.rs - Sparse VRAM
crates/xcl/src/hle/d3d12x/sparse.rs - Presentation
crates/xcl/src/hle/d3d12x/present.rs - GPU descriptors
crates/xcl/src/gpu/desc.rs - GPU synchronization
crates/xcl/src/gpu/fence.rs
Media and tools
- Video decoding
crates/xcl/src/hle/opus.rs - Inspection and shader tools
crates/xcl/src/main.rs - Shader analysis
crates/xcl/src/shaders.rs
Other components
- Game owner
Connections 36
- Game owner → Launcher and host: runs game
- Launcher and host → PE loader: loads title
- PE loader → Import resolver: routes imports
- Import resolver → Kernel compatibility: dispatches API
crates/xcl/src/hle/kernelx.rs - PE loader → XGameRuntime: routes imports
- Kernel compatibility → Lazy page mapping: maps pages
crates/xcl/src/hle/kernelx.rs - Kernel compatibility → Shared graphics memory: uses memory
crates/xcl/src/hle/kernelx.rs - XGameRuntime → GameInput: provides input
crates/xcl/src/hle/xgameruntime/mod.rs - Kernel compatibility → Virtual filesystem: uses paths
crates/xcl/src/hle/kernelx.rs - Game owner → DirectStorage and BCPack: requests assets
- DirectStorage and BCPack → Shared graphics memory: uses graphics memory
crates/xcl/src/hle/dstorage.rs - Game owner → Audio codecs: requests audio
- Game owner → D3D12.X objects: calls console graphics
- D3D12.X objects → Console command lists: creates pipelines
crates/xcl/src/hle/d3d12x/real.rs - Console command lists → Sparse VRAM: uses sparse memory
crates/xcl/src/hle/d3d12x/list_x.rs - D3D12.X objects → Presentation: presents frames
crates/xcl/src/hle/d3d12x/real.rs - Console command lists → Shared graphics memory: uses shared memory
crates/xcl/src/hle/d3d12x/list_x.rs - D3D12.X objects → Shader capture: captures shaders
crates/xcl/src/hle/d3d12x/real.rs - Shader capture → RDNA2 decoding: parses programs
crates/xcl/src/gpu/shader.rs - RDNA2 decoding → Shader recompiler: decodes instructions
crates/xcl/src/gpu/recomp/mod.rs - Shader recompiler → HLSL emission: emits HLSL
crates/xcl/src/gpu/recomp/mod.rs - Shader recompiler → DXC compilation: compiles shaders
crates/xcl/src/gpu/recomp/mod.rs - Shader recompiler → Pipeline creation: builds pipelines
crates/xcl/src/gpu/recomp/mod.rs - GPU execution → Pipeline creation: creates compute PSO
crates/xcl/src/gpu/recomp/runner.rs - GPU execution → GPU synchronization: synchronizes GPU
crates/xcl/src/gpu/recomp/runner.rs - GPU execution → Shared graphics memory: accesses memory
crates/xcl/src/gpu/recomp/runner.rs - D3D12.X objects → GPU descriptors: uses descriptors
crates/xcl/src/hle/d3d12x/real.rs - Game owner → Texture layout: submits textures
- Texture layout → Texture tiling: decodes layout
crates/xcl/src/gpu/texture.rs - Texture layout → Shared graphics memory: uploads textures
crates/xcl/src/gpu/texture.rs - Game owner → Ray tracing BVH: builds acceleration structures
- Game owner → Video decoding: plays video
- Game owner → Inspection and shader tools: runs tools
- Inspection and shader tools → Shader analysis: analyzes shaders
- Launcher and host → Boot configuration: reads settings
- Launcher and host → Runtime state: sets runtime state