最近推送 2026-11-24 21:38(9 天前),属于活跃维护
ivall/xcl
GITHUB中文整理主语言 Rust · 6,919 星 · GPL-2.0 · 创建于 2026-11-21
一个用 Rust 编写的 Windows 兼容层,让 Xbox Series X|S 游戏的主机程序在 PC 上原生运行,无需 CPU 模拟。
仓库健康度
5 个维度开放 Issue 323 个 · Fork 848 个
24 小时 积累中 · 7 日 +0 · 30 日 积累中
许可证 GPL-2.0 · 4 个 topics
这一项暂无数据,不代表项目没有发布
「证据不足」表示这项数据暂时没有取到,不能读成「项目有问题」;「部分数据」表示只拿到一部分信号。版本发布要额外调 Releases 接口,下一版补。
Star 趋势
11 天记录横轴 2026-11-23 → 2026-12-03,纵轴按这段时间的最小/最大值拉伸。趋势来自站内每天记录一次的星数,页面打开时不会实时请求 GitHub。
它解决什么问题
据 README 归纳Xbox Series X|S 游戏依赖主机专有系统库和 RDNA2 GPU 代码,普通 Windows PC 无法直接加载运行;没有这个兼容层,玩家和研究者只能借助完整模拟器或无法在 PC 上执行这些游戏文件。
核心能力
6 条- 1以替代库方式补上 PC 缺失的主机系统组件,让游戏 x64 代码原生执行
- 2把主机 RDNA2 GPU 机器码重编译为 PC 可用的 HLSL 并进一步编译为 DXIL
- 3直接运行游戏自带的主机 DLL,包括视频解码、光追 BVH 构建和 FSR 4 放大
- 4按主机 GFX10 平铺与 mip 布局精确解码纹理,测试中多数纹理逐字节一致
- 5提供 inspect 命令查看游戏导入项与兼容层对应关系,run 命令启动游戏
- 6内置 370 多个自动化测试,含逐指令比对翻译后着色器结果的 GPU 测试
项目画像
6 个角度项目定位
一个用 Rust 编写的 Windows 兼容层,让 Xbox Series X|S 游戏的主机程序在 PC 上原生运行,无需 CPU 模拟。
适合谁
希望在 Windows PC 上运行 Xbox Series X|S 零售游戏的技术用户、兼容层研究者,以及需要验证主机着色器与资源翻译流程的开发者。
典型场景
在 PC 上启动受支持的 Xbox Series X|S 零售游戏并观察运行情况;用 inspect 检查某个游戏依赖哪些主机库以及兼容层是否覆盖;对翻译后的着色器做逐指令自动化验证,排查图形差异。
部署难度
需要安装 Rust MSVC 工具链和 Windows SDK,并准备支持 SM 6.6 与网格着色器的 D3D12 显卡;用 cargo 构建工作区后得到可执行文件,再通过命令行运行,步骤较多且对硬件有要求。
风险限制
需要 Windows 10/11 x64、Rust MSVC 工具链、Windows SDK 中的 DXC、支持 Shader Model 6.6 与网格着色器的 D3D12 GPU,以及系统自带的 XGameRuntime;Windows 10 上可能需额外放置 D3D12 Agility SDK。
最近维护
最近一次推送是 2026-11-24 21:38。 实现方式:游戏 x64 代码在 PC 上原生执行,兼容层替换主机专有库并承接其调用;主机 GPU 代码先转为 HLSL,再编译为 DXIL 交给 PC 显卡执行,同时按主机格式还原纹理与资源布局。
README 原文细节
3 个板块核心功能README 里列出来的能力清单
Highlights
- become HLSL; random samples compile to DXIL with 0 errors.
- The game's own console DLLs run on the PC – its Bink 2 video codec decodes the game's
- movies, its ray-tracing BVH builder builds acceleration structures on a PC GPU, the AMD FSR 4
- console upscaler runs a whole frame on a PC GPU, the GDK HTTP library initialises.
- Console textures decode exactly – the GFX10 tiling and mip layout reproduce 909 of 912
- textures of the game's texture archive byte for byte, its volume textures included.
- 370+ automated tests, including GPU tests that compare translated shaders against expected
- results instruction by instruction.
怎么用最典型的用法与示例
Building and usage
Windows 10/11 x64, Rust (stable-x8664-pc-windows-msvc), the Windows SDK (DXC: dxcompiler.dll + dxil.dll, looked up in Windows Kits\10\bin\\x64, next to xcl.exe or in %XCLDXCDIR%), a D3D12 GPU with Shader Model 6.6 and mesh shaders, and the system XGameRuntime (System32\xgameruntime.dll, part of Windows / Gaming Services). On Windows 10 (22H2 KB5029331+), inbox D3D12Core.dll stops at SM 6.5; place the Microsoft D3D12 Agility SDK (D3D12Core.dll, plus d3d12SDKLayers.dll if using XCLD3D12DEBUG=1) in a D3D12\ folder next to xcl.exe, directly next to xcl.exe, in %LOCALAPPDATA%\XCL\D3D12\, or point %
- DXC: 1.8 or newer is recommended, from the
- DirectXShaderCompiler releases: unpack one
- pipelines from (#156). xcl run prints the DXC it loaded, and
- report.json has it under dxc.
- GPU: developed on AMD RDNA4. The console's geometry and NGG programs run as a compute pass plus a
- mesh pass, so a GPU without mesh shaders draws none of them. On GPUs with 32-lane waves only
- (NVIDIA) console wave64 compute, geometry and mesh programs run as two 32-lane halves that exchange
- masks and lane values (docs/wave64-on-wave32.md) – slower than
- can still differ there. Test results on other GPUs: #42.
- Without a command line (xcl.exe opened from Explorer) XCL shows a small menu: Choose a
- game… (pick its exe or MicrosoftGame.config) or Run again (the last one). On an error the
- window stays open until Enter.
- XCL works on unpacked game files you own; it contains nothing for decrypting or
- circumventing DRM.
cargo build --release --workspace # target\release\xcl.exe
xcl inspect D:\Game\game.exe # the game's imports and what XCL has for them
xcl run D:\Game [-- game arguments] # run
xcl disasm <shader.bin> [--hex] # RDNA2 disassembler (console containers too)
xcl shaders D:\data\shaders.rpf --top 50 # pack statistics; --recomp / --compile N
xcl rpf D:\data\shaders.rpf --extract NAME --out folder
其它说明README 里剩下的内容
Games
- Minecraft Preview — Microsoft.MinecraftBeta 1.18.3064.0 — ✅ — fully playable — –
- Unicorn Overlord — SEGAofAmericaInc.Pa253b0c1Y 1.0.0.6 — ✅ — fully playable — –
- Fortnite — 436609B6.FortniteClient 2.0.1461.7919 — ✅ — works fully, as far as the game allows without its online services — the game itself is online-only (multiplayer servers)
- XDefiant — Ubisoft.XDefiant-Game 1.0.0.186 — ✅ — works fully, as far as the game allows without its servers — the game's own servers have been shut down
- A newer retail game — – — 🚧 — starts in ~4 s, runs at a steady 30 fps without a crash, shows its menus and goes on past the first one to its settings; fits a 32 GB machine (~15 GB committed in the men
Running the game's code
- PE loader — ✅ — relocations, imports by name / ordinal / delay-load, TLS callbacks, exception tables, game DLLs, data-driven import routing (HLE / Windows / stub) — the game's 16 console DLLs load wit
- kernelx — ✅ — title memory (budget from MicrosoftGame.Config, physical pages), threads on the PC's processors, modules, OS / console info — unit + end-to-end tests
- Memory — ✅ — title graphics memory shared by CPU and GPU without copies, up to 16 GB (4 GiB windows) — GPU tests: loads, stores and atomics across windows
- File system — ✅ — console paths (GAME:, G:, D: …) → the game folder; writes go to an overlay, the game folder is never modified; the console's drives: S:\ (persistent local storage) and T:\ (temp) in
System services
- XGameRuntime — ✅ — the GDK thunk protocol real titles use, laid out from a table of all 396 GDK runtime functions; offline XUser, XGameSave, persistent local storage, XPackage, XGame (title id), XSyst
- Input — ✅ — GameInput: one gamepad – the PC's XInput controller, and keyboard and mouse as a gamepad (see Controls) — unit tests; an Xbox controller in Minecraft
- Audio — ✅ — XAudio2 → system XAudio2.9 (PCM / float voices; Opus 0x704F decoded via MSOpusDecoder.dll; XMA1 / XMA2 decoded in pure Rust) — unit + end-to-end tests
关于 xcl 的常见问题
6 个问题xcl 是做什么的?
一个用 Rust 编写的 Windows 兼容层,让 Xbox Series X|S 游戏的主机程序在 PC 上原生运行,无需 CPU 模拟。 Xbox Series X|S 游戏依赖主机专有系统库和 RDNA2 GPU 代码,普通 Windows PC 无法直接加载运行;没有这个兼容层,玩家和研究者只能借助完整模拟器或无法在 PC 上执行这些游戏文件。
xcl 有哪些功能?
核心能力:以替代库方式补上 PC 缺失的主机系统组件,让游戏 x64 代码原生执行;把主机 RDNA2 GPU 机器码重编译为 PC 可用的 HLSL 并进一步编译为 DXIL;直接运行游戏自带的主机 DLL,包括视频解码、光追 BVH 构建和 FSR 4 放大;按主机 GFX10 平铺与 mip 布局精确解码纹理,测试中多数纹理逐字节一致;提供 inspect 命令查看游戏导入项与兼容层对应关系,run 命令启动游戏;内置 370 多个自动化测试,含逐指令比对翻译后着色器结果的 GPU 测试。
xcl 适合谁用?
希望在 Windows PC 上运行 Xbox Series X|S 零售游戏的技术用户、兼容层研究者,以及需要验证主机着色器与资源翻译流程的开发者。
xcl 是怎么工作的?
游戏 x64 代码在 PC 上原生执行,兼容层替换主机专有库并承接其调用;主机 GPU 代码先转为 HLSL,再编译为 DXIL 交给 PC 显卡执行,同时按主机格式还原纹理与资源布局。
用 xcl 有什么门槛或限制?
需要 Windows 10/11 x64、Rust MSVC 工具链、Windows SDK 中的 DXC、支持 Shader Model 6.6 与网格着色器的 D3D12 GPU,以及系统自带的 XGameRuntime;Windows 10 上可能需额外放置 D3D12 Agility SDK。
xcl 现在还在维护吗?数据怎么样?
目前 6,919 星,848 个 Fork,主语言 Rust,创建于 2026-11-21,最近一次推送 2026-11-24 21:38,许可证 GPL-2.0。星数、Fork、推送时间都是 GitHub 返回的实时数据,「最近推送」离现在越近说明越活跃;长期不动要留意是否已停止维护。
这些内容来自哪
读法说明项目数据取自 GitHub 官方接口与项目 README;星数、Fork、语言与时间以 GitHub 页面为准,档案更新于 2026-11-24 11:05。