Byte-Engine
📚 Docs: https://byte-engine.0x44491229.dev/docs
Use Byte-Engine to build Rust applications that need graphics,
input, audio, physics, resources, networking, and retained UI in one runtime.
Start with the public byte-engine facade for most applications. Use the
lower-level crates when you need direct access to rendering, audio, resources,
shader processing, transport, math, or utilities. Each crate provides a small,
composable engine layer.
[!WARNING]
Status: Byte-Engine is early, so expect breaking API changes. Pin the
package version and review the changelog before you update.
✨ What you can use
- 🖼️ Platform graphics paths for Vulkan/Linux, Metal/macOS, and Direct3D 12/Windows.
- 🔊 Platform audio interfaces for Linux, macOS, and Windows.
- 🎮 Action-based input that lets your application respond to intent such as
Move, Fire, or Confirm instead of raw device buttons.
- 📨 Actor-style system boundaries built around compact messages, factories,
handles, and listeners.
- 📦 Asset pipeline that separates authored assets from runtime-ready resources.
- 🛠️ BELD, the command line each application builds for baking, listing, querying,
inspecting, and deleting its resources.
- 🧪 BESL, the Byte Engine Shader Language, for shader parsing, reflection, material
integration, and backend shader generation.
- 🧩 Early retained, async-friendly UI primitives that run in the engine render loop.
✅ Check the requirements
Byte-Engine currently targets nightly Rust and uses unstable language features.
The repository pins the toolchain in rust-toolchain.toml:
nightly-2026-08-31
Install Rust with rustup. When you run Cargo inside the checkout, it uses the
pinned nightly automatically. Install the engine's default test harness:
cargo install cargo-nextest --version 0.9.140 --locked
Platform requirements:
| Platform | Required setup |
|---|
| Linux | Vulkan development packages, Wayland/X11 packages, ALSA, libudev, D-Bus, CMake |
| macOS | Full Xcode with the Metal Toolchain component, plus CMake and pkg-config |
| Windows | Visual Studio Build Tools with the MSVC C++ toolchain and Windows SDK |
On Linux, run bash install_dependencies.sh from the repository root. This
command installs the dependencies used by CI and development containers.
Use a GPU that supports the active backend, AVX2 on x64 platforms, and at least
4 GB of RAM. For complete setup information, see:
🚀 Start from source
git clone https://github.com/Game-Tek/Byte-Engine.git
cd Byte-Engine
cargo check -p byte-engine
Run a small smoke test:
cargo run -p byte-engine --example window
Run the default graphics setup example:
cargo run -p byte-engine --example triangle
Most smoke examples set kill-after=60 and exit automatically after about one minute.
🧱 Create a minimal headed application
use byte_engine::application::Parameter;
use byte_engine::application::graphics::{default_setup, GraphicsApplication};
fn main() {
let mut app = GraphicsApplication::new(
"my-byte-app",
&[
// Useful on devices that do not support mesh shading yet.
Parameter::new("render.ghi.features.mesh-shading", "false"),
],
);
default_setup(&mut app);
app.do_loop();
}
Install the latest published Byte-Engine release from crates.io:
cargo add byte-engine
Getting the latest unreleased changes requires pulling Byte-Engine from Git and installing it with one of the additional methods in the docs.
🗺️ Explore the workspace
| Path | Purpose |
|---|
crates/byte-engine | Main public engine crate and application-facing facade. |
crates/ghi | Graphics hardware interface used by the renderer. |
crates/ahi | Audio hardware interface used by engine audio systems. |
crates/resource-management | Asset handling, resource storage, shader resources, runtime reads, parameters, and the BELD command line. |
crates/besl | Byte Engine Shader Language parser, lexer, semantic graph, and integration. |
crates/betp | Byte Engine transport protocol primitives for local and remote sessions. |
crates/math | Shared math aliases and helpers. |
crates/utils | Shared allocation, async, sync, collection, and geometry utilities. |
docs | Documentation source: Introduction, Use (application tasks), Contribute (engine workflow and design notes), Reference (definitions), and the generated API section. |
docs-site | Documentation site project. |