Read-only copy of github.com/p-portela/SCARAB · Scarlett Compatibility And Runtime API Bridge
  • C++ 35.4%
  • Python 34.9%
  • C 13.1%
  • CMake 8.2%
  • Pawn 3.2%
  • Other 5.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-23 13:24:21 +01:00
cmake chore: relicense to GPL-3.0-only, with SPDX headers on first-party files 2026-11-21 14:43:54 +01:00
components tools: run the disassembler over the corpus and diff it against our walker 2026-11-21 15:43:32 +01:00
docs tools: run the disassembler over the corpus and diff it against our walker 2026-11-21 15:43:32 +01:00
scripts docs: remove the artefact acquisition recipe 2026-11-21 15:27:00 +01:00
tests docs: remove the artefact acquisition recipe 2026-11-21 15:27:00 +01:00
tools tools: clear stale chunks before splitting 2026-11-21 15:46:02 +01:00
.gitignore docs: remove the artefact acquisition recipe 2026-11-21 15:27:00 +01:00
CMakeLists.txt docs: remove the artefact acquisition recipe 2026-11-21 15:27:00 +01:00
CONTRIBUTING.md docs: drop the upstream-project references and the SPIR-V path 2026-11-21 15:31:20 +01:00
LICENSE chore: relicense to GPL-3.0-only, with SPDX headers on first-party files 2026-11-21 14:43:54 +01:00
NOTICE.md docs: remove the artefact acquisition recipe 2026-11-21 15:27:00 +01:00
README.md docs: simplify the README to the basics 2026-11-23 13:24:21 +01:00

SCARAB

Scarlett Compatibility And Runtime API Bridge

A translation layer that runs a console (Scarlett) D3D12 title on PC.

Status · How it works · Build · Docs · License

SCARAB is not an emulator. Scarlett is x86-64, so the title's own code runs unchanged — only the console OS and GPU-driver surface needs replacing. Console and PC D3D12 are close enough that standard calls are forwarded to a PC runtime; only the console-only extensions are implemented here. Windows is the primary target; Linux works through vkd3d-proton.

Status

component what it does state
runtime-bridge the console D3D12 runtime built, verified byte-exact, runs under Wine
extension-wrapper console-only D3D12 extensions built and integrated
shader-bridge console shader translation extraction done; recompilation in progress
memory-adapter console memory and heap handling interface only
present-adapter console presentation interface only

Nothing runs a title yet. The title executable and the console system image are not part of this project; everything is built to advance without them. See MILESTONES.md.

How it works

  • Standard D3D12 is forwarded to the PC runtime. The console-only X methods and command-list types are added by the optional wrapper, so the bridge still works without it.
  • Console shaders ship as precompiled GPU code and are translated to DXIL, which both Windows D3D12 and vkd3d-proton accept.
  • The PC backend is picked at runtime, not at build time:
backend platform
Microsoft D3D12 (system) Windows
Microsoft Agility SDK Windows
vkd3d-proton (D3D12 → Vulkan) Linux

Build

Windows (primary):

$env:SCARAB_ARTIFACTS = "$env:USERPROFILE\Documents\artifacts"
.\scripts\link-artifacts.ps1
.\scripts\build.ps1
.\tests\run_tests.ps1

Linux (cross-compile with LLVM-mingw, tests under Wine):

export SCARAB_ARTIFACTS=~/Documents/scarab-artifacts
./scripts/link-artifacts.sh
./tests/run_tests.sh

Prerequisites, Wine setup and troubleshooting: BUILDING.md.

Layout

components/runtime-bridge      d3d12_xs.dll            the console D3D12 runtime
components/extension-wrapper   d3d12_xs_wrap.dll       console-only extensions
components/shader-bridge       FSSM -> RDNA2 -> DXIL   shader translation
components/memory-adapter      console memory semantics
components/present-adapter     console presentation
tools/                         PE parser, export verifier, forwarding generator
tests/                         the verification gates
docs/                          architecture, findings, provenance

Docs

License

GPLv3 — see LICENSE. Copyright (C) 2026 Pedro Portela.

No vendor binaries or game content are redistributed here. Third-party names are used descriptively; see NOTICE.md.