Architecture of r0y00/xbox2windows
r0y00/xbox2windows is 930 source files holding 14,846 symbols across 3 modules, written mainly in Python, C++, Zig. The largest module is tests, with 706 files.
How xbox2windows fits together
Inputs are selected x64 machine code from Xbox programs and gfx1013 shaders, which are translated into C++ and DXIL. The src directory holds the runtime side, where src/xmem_shim.cpp provides XMemAlloc, XMemFree and XMemVirtualQuery and maps title memory onto desktop GPU allocations. The src/startup_stubs directory contains the Direct3D 12 device and runtime stubs, such as src/startup_stubs/d3d12_xs_device.cpp. The tools directory holds command-line programs that decode and probe BC7 textures and Bink video descriptors and can write generated code. The tests directory is the largest, with fixtures that compare native Windows, mapped PE and recompiled builds of the same programs. CMakeLists.txt defines the build, and requirements-dev.txt lists the Python development dependencies.
Largest modules
- tests: 706 files and 172,229 lines of code
- tools: 111 files and 50,294 lines of code
- src: 88 files and 18,845 lines of code
Languages
By file count: Python 546 files, C++ 354 files, Zig 3 files, C 1 file, Shell 1 file.
Documentation
Repowise documents xbox2windows in 377 pages generated from the source, 5 of them written explanations of the repository and its modules. Module guides include:
- src: Adapter Identity and D3D12 Bindings
- tools: BC7 and Bink Asset Tooling
More on xbox2windows: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos