Documentation

Architecture

Native execution

Hematite maps a 64-bit PE executable into a Linux process and runs the title instructions directly on x86-64 hardware. The loader resolves imports against its Rust implementations and supported libraries that ship with a title. When a guest reaches an unimplemented import, Hematite reports its name.

Runtime interfaces

The runtime implements parts of Win32, WinRT, the UWP app model and the C and C++ runtimes. Direct3D 11 maps to Vulkan and translates supported shaders to SPIR-V. Titles that ship ANGLE can use the EGL and GL ES path. XAudio2 output uses PipeWire or PulseAudio, and XInput uses Linux gamepads.

Launcher and CLI

The desktop launcher starts a title in a separate process so the launcher can collect its output and handle a title exit. Title code still executes with the user’s permissions. Use the CLI to inspect imports or run a title directly.

./hematite inspect ./Example.appx
./hematite run ./Example.appx

Read the full architecture notes.