xcl-dev/xcl

GITHUB中文整理

主语言 Rust · 9,068 星 · GPL-3.0 · 创建于 2026-11-21

兼容层XboxWindowsRust图形转译 新秀30 天第 4 名
打开 GitHub 仓库

XCL 是一个面向 Windows PC 的 Xbox Series 兼容层,用于运行用户已购买的主机游戏,不以模拟 CPU 的方式工作,属于兼容层工具。

Stars 9,068 累计 star,越多说明被认可得越广
Watching 127 订阅该仓库变动的人数
Forks 1,242 被派生出去的仓库数
Issues 1,187 当前开放的 Issue 数
语言 Rust GitHub 自动判定的主语言
许可证 GPL-3.0 开源协议,用之前先确认能不能商用
24h 增长 — 数据积累中
7 日增长 +419 6 天前 8,653 星
30 日增长 — 数据积累中

仓库健康度

5 个维度
只看客观信号,不构成安全性结论
维护活跃度 数据完整
2026-12-03 14:49 最近推送

最近推送 2026-12-03 14:49(0 天前),属于活跃维护

社区响应 数据完整
1,187 开放 Issue

开放 Issue 1,187 个 · Fork 1,242 个

增长趋势 部分数据
+419 7 日新增

24 小时 积累中 · 7 日 +419 · 30 日 积累中

项目规范 数据完整
GPL-3.0 许可证

许可证 GPL-3.0 · 4 个 topics

版本发布 证据不足
— 发布次数

这一项暂无数据,不代表项目没有发布

「证据不足」表示这项数据暂时没有取到,不能读成「项目有问题」;「部分数据」表示只拿到一部分信号。版本发布要额外调 Releases 接口,下一版补。

Star 趋势

9 天记录
最近 90 天站内记录的星数
9,072当前 Star +903首尾差值 2026-11-25最早记录 2026-12-03最近记录

横轴 2026-11-25 → 2026-12-03,纵轴按这段时间的最小/最大值拉伸。趋势来自站内每天记录一次的星数,页面打开时不会实时请求 GitHub。

它解决什么问题

据 README 归纳
没有它会怎样

Xbox Series 主机游戏依赖 PC 上不存在的系统库和主机 GPU 代码,无法直接在 Windows 上运行;若没有这类兼容层,用户已购游戏只能在主机上玩,开发者也无法在 PC 环境验证这些游戏组件的运行行为。

核心能力

6 条
归纳自 README,不是功能列表照抄
  1. 1原生运行游戏 x64 代码,不模拟 CPU
  2. 2独立实现主机系统库,补足 PC 缺失的接口
  3. 3将主机 RDNA2 GPU 代码经 HLSL 重新编译为 DXIL
  4. 4让游戏自带主机 DLL 在 PC 上执行其视频解码、光追构建、超分和网络库等功能
  5. 5按主机 GFX10 纹理布局精确解码纹理与体积纹理
  6. 6提供 370 多项自动化测试,含逐指令对比编译后着色器的 GPU 测试

项目画像

6 个角度
决定要不要用之前,先看这六条

项目定位

XCL 是一个面向 Windows PC 的 Xbox Series 兼容层,用于运行用户已购买的主机游戏,不以模拟 CPU 的方式工作,属于兼容层工具。

适合谁

适合已拥有 Xbox Series 游戏解包文件、想在 Windows PC 上运行它们并愿意自行准备运行环境的玩家或技术研究者。

典型场景

在 Windows PC 上加载已解包的自有 Xbox Series 游戏,借助兼容层运行其原生代码与图形内容;利用命令行检查游戏可执行文件并查看加载的 DXC 与报告;在支持网格着色器的 GPU 上验证主机图形程序转译后的绘制与计算结果。

部署难度

需要安装 Rust MSVC 工具链和 Windows SDK,准备 DXC 与 D3D12 Agility SDK,并确认显卡支持 SM 6.6 和网格着色器;之后用 cargo 构建工作区生成 xcl.exe,再通过命令行运行。

风险限制

需 Windows 10/11 x64、Rust MSVC 工具链、Windows SDK 的 DXC、支持 SM 6.6 与网格着色器的 D3D12 GPU 及系统 XGameRuntime;仅处理已拥有且解包的游戏文件,不负责下载解密解包或绕过 DRM。

最近维护

最近一次推送是 2026-12-03 14:49。 实现方式:游戏 x64 代码直接在本机执行,XCL 提供自写的主机系统库实现;主机 GPU 机器码先转成 HLSL,再编译为 DXIL 交给 PC 显卡执行;纹理按主机平铺与 mip 布局解码。

README 原文细节

5 个板块
项目自己写的功能与用法,原文照录

核心功能README 里列出来的能力清单

Highlights

No CPU emulation – the game's x64 code runs natively, in the spirit of Wine / Proton. 100 % of a retail game's shaders translate – all 26 698 RDNA2 programs (26 503 records) of its shader pack 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 texture layouts – the archive test reads and detiles all 912 entries in the r

怎么安装从零跑起来的步骤

Quick start

A gamepad is recommended (Controls). The game folder is never modified.

  • Build – Windows 10 / 11 x64, Rust and the Windows SDK (all requirements):
  • Look at your game – its unpacked files, the folder that holds MicrosoftGame.config:
  • Run it – or open xcl.exe from Explorer and choose the game:
cargo build --release --workspace

怎么用最典型的用法与示例

Building and usage

Windows 10/11 x64, Rust (stable-x8664-pc-windows-msvc), the Windows SDK (DXC: dxcompiler.dll and 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

Fill the reusable DXIL cache ahead of a run with the read-only package wrapper. Add -Pipelines to warm the GPU driver's compute-pipeline cache too (slower and GPU/driver-specific):

The offline command accepts up to 32 workers. Normal launch also prepares the staged corpus. When a shader pack or local history overlaps the corpus, XCL prepares each exact match once. Use the same adapter and memory-window configuration for offline preparation and play so the driver can reuse the results. Graphics state combinations absent from the supplied recipes and local history can still require a first-use compile during play. - For compute shaders that XCL can split, the runtime first tries the saved driver blob for the whole shader. A usable blob lets the GPU run it in one dispatch.

  • Shader translation: console compute, vertex and pixel shaders are translated straight to DXIL;
  • a shader the direct translator cannot handle yet goes through HLSL and DXC instead.
  • XCLDIRECTDXIL=1 keeps vertex and pixel shaders on the HLSL path, XCLDIRECTDXIL=0 every
  • shader (except very large compute programs, XCLDIRECTHUGE).
  • 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. A compute program with many memory-window accesses is compiled
  • as two libraries, the program and its accessors, and linked, which is much faster for DXC
  • (XCLLINKMEM=0 turns it off); the linker needs DXC 1.8 or newer. With an older one the first
  • attempt fails, xcl.log says so, and every program is compiled whole after that.
  • 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
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 shaders D:\data\shaders.rpf --precompile --only cs --pipelines   # build compute pipelines and save driver blobs f

实现原理它内部是怎么做的

How it works

The game's code runs on the CPU as it is; each call into a console library lands in XCL's own implementation of it, and each shader is translated once and cached. The details: docs/specs/2026-11-20-xcl-design.md, status and measurements: HANDOFF.md.

其它说明README 里剩下的内容

Games

  • Minecraft PreviewMicrosoft.MinecraftBeta 1.18.3064.0 — ✅&nbsp;playable — fully playable — –
  • Unicorn OverlordSEGAofAmericaInc.Pa253b0c1Y 1.0.0.6 — ✅&nbsp;playable — fully playable — –
  • Fortnite436609B6.FortniteClient 2.0.1461.7919 — ✅&nbsp;works — works fully, as far as the game allows without its online services — the game itself is online-only (multiplayer servers)
  • XDefiantUbisoft.XDefiant-Game 1.0.0.186 — ✅&nbsp;works — works fully, as far as the game allows without its servers — the game's own servers have been shut down
  • A newer retail game — 🚧 — its 3D world loads and is visible, with some graphical artifacts; runs at ~5 fps there; on AMD GPUs use the amd-dev branch — unstable; some graphical artifacts

What works

Running the game's code – PE loader, kernelx, Memory, File system, DirectStorage

Far-jump address calculations are resolved to fixed targets only when branches enter at the start of the calculation. An entry partway through it keeps the jump indirect and subject to the recompiler's existing indirect-branch limits.

  • 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
  • DirectStorage — ✅ — the console's DirectStorage queues: file and memory sources, queued event notifications, zlib, and BCPack – the console's texture compression – for BC1, BC3, BC4, BC5, BC6H and BC7
  • 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 or a PlayStation controller, and keyboard and mouse as a gamepad (see Controls) — unit tests; an Xbox controller in Minecraft; a DualSho
  • 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
  • Shader recompiler — ✅ — RDNA2 → HLSL → DXIL: VS, PS, CS, mesh (NGG), GS; atomics, LDS, scratch, images, samplers incl. static ones, wave ops, ray-tracing instructions; structured control flow; sload a
  • Pipelines — ✅ — PSOs from console shaders: VS+PS, CS, MS+PS, VS+GS+PS; root signature with the shaders' static samplers; non-blocking creation – a pipeline whose shaders are not compiled yet gets a st
  • D3D12.X compute — ✅ — console device slots, console descriptor heaps (T# / V# / S#), buffers at their console addresses, compute command lists recorded in the console format and replayed (tables, barr
  • D3D12.X graphics — ✅ — device, resources and heaps (also placed in title memory), pipelines; the title's graphics command lists – draws, indirect draws, graphics root arguments, barriers, copies, clea
  • Textures — ✅ — GFX10 tiling (all 14 2D swizzle modes, the 6 3D thick modes, linear), mip chains with mip tail, arrays, cubes and 3D textures → PC textures; supported GPU-written title subresources cop
  • Ray tracing — ✅ — BLAS / TLAS built on the GPU by the game's own XboxBvhBuilder; RDNA2 BVH node format; BVH intersection instructions emulated in shaders, with misses for nodes outside mapped memory w

Controls

A gamepad is recommended: console games are made for one, and their menus and controls expect it.

To override keyboard and mouse controls for one title, add an optional table to its xcl.toml. For example, use arrow keys for the left stick, clear the arrow-key D-pad bindings, and swap the mouse buttons:

Omitted entries use the built-in bindings. An empty list clears a binding. The output names are moveup, moveleft, movedown, moveright, a, b, x, y, the four dpad directions, view, menu, leftbumper, rightbumper, leftstick, rightstick, lefttrigger, and righttrigger. Each accepts a list of alternative inputs. Input names include a through z, digit0 through digit9, num0 through num9, f1 through f12, leftshift, rightctrl, rightalt, mousemiddle, mousex1, and mousex2. The physicalq, physicalw, physicale, physicala, physicals, and physicald inputs follow the positions used by the default layout. Set wh

  • Gamepad: any controller Windows sees through XInput (Xbox controllers, wired or wireless) is the
  • game's gamepad – buttons, sticks, triggers and rumble. It can be plugged in or out while the game runs.
  • GameInput keeps half a second of recent state changes so titles can read inputs between frames.
  • PlayStation controllers (DualShock 4 wired or over Bluetooth, DualSense wired) are the gamepad
  • when no XInput controller is connected – buttons, sticks and triggers, no rumble or light bar.
  • XCLPLAYSTATIONPAD=0 turns this off.
  • Keyboard and mouse work too, as a gamepad: WASD the left stick, the mouse the right stick, mouse
  • buttons the triggers, the wheel the bumpers, Enter / Space A, Escape / Backspace B, arrows the D-pad,
  • E / Q Y / X, Shift / Ctrl the stick clicks, Tab View, P Menu. keyboardmouse and mousesensitivity in
  • the game's xcl.toml turn it off or change the mouse speed. A gamepad and the keyboard / mouse can be
  • used together.

关于 xcl 的常见问题

7 个问题
答案来自 README 归纳与 GitHub 实时数据
xcl 是做什么的?

XCL 是一个面向 Windows PC 的 Xbox Series 兼容层,用于运行用户已购买的主机游戏,不以模拟 CPU 的方式工作,属于兼容层工具。 Xbox Series 主机游戏依赖 PC 上不存在的系统库和主机 GPU 代码,无法直接在 Windows 上运行;若没有这类兼容层,用户已购游戏只能在主机上玩,开发者也无法在 PC 环境验证这些游戏组件的运行行为。

xcl 有哪些功能?

核心能力:原生运行游戏 x64 代码,不模拟 CPU;独立实现主机系统库,补足 PC 缺失的接口;将主机 RDNA2 GPU 代码经 HLSL 重新编译为 DXIL;让游戏自带主机 DLL 在 PC 上执行其视频解码、光追构建、超分和网络库等功能;按主机 GFX10 纹理布局精确解码纹理与体积纹理;提供 370 多项自动化测试,含逐指令对比编译后着色器的 GPU 测试。

xcl 适合谁用?

适合已拥有 Xbox Series 游戏解包文件、想在 Windows PC 上运行它们并愿意自行准备运行环境的玩家或技术研究者。

xcl 是怎么工作的?

游戏 x64 代码直接在本机执行,XCL 提供自写的主机系统库实现;主机 GPU 机器码先转成 HLSL,再编译为 DXIL 交给 PC 显卡执行;纹理按主机平铺与 mip 布局解码。

怎么安装 xcl?

按项目 README 的说明:Build – Windows 10 / 11 x64, Rust and the Windows SDK (all requirements):;Look at your game – its unpacked files, the folder that holds MicrosoftGame.config:;Run it – or open xcl.exe from Explorer and choose the game:。完整命令见下方「怎么安装」一节或 GitHub 仓库的 README。

用 xcl 有什么门槛或限制?

需 Windows 10/11 x64、Rust MSVC 工具链、Windows SDK 的 DXC、支持 SM 6.6 与网格着色器的 D3D12 GPU 及系统 XGameRuntime;仅处理已拥有且解包的游戏文件,不负责下载解密解包或绕过 DRM。

xcl 现在还在维护吗?数据怎么样?

目前 9,068 星,1,242 个 Fork,主语言 Rust,创建于 2026-11-21,最近一次推送 2026-12-03 14:49,许可证 GPL-3.0。星数、Fork、推送时间都是 GitHub 返回的实时数据,「最近推送」离现在越近说明越活跃;长期不动要留意是否已停止维护。

这些内容来自哪

读法说明
中文整理据 README 归纳,数据取自 GitHub
中文说明据项目 README 归纳只写 README 能确认的内容,不替作者补功能与数字
关键数据与 GitHub 页面一致星数、Fork、语言与时间都不做二次加工
数据日期2026-12-02 07:36星数与介绍这份数据是哪一天的

项目数据取自 GitHub 官方接口与项目 README;星数、Fork、语言与时间以 GitHub 页面为准,档案更新于 2026-12-02 07:36。