Blade Graphics
Blade-graphics is a lean and mean GPU abstraction aimed at ergonomics and fun. See motivation, FAQ, and performance for details.
Examples

Platforms
The backend is selected automatically based on the host platform:
- Vulkan on desktop Linux, Windows, and Android
- Metal on desktop macOS, and iOS
- OpenGL ES3 on the Web
| Feature | Vulkan | Metal | GLES |
|---|---|---|---|
| compute | :white_check_mark: | :white_check_mark: | |
| ray tracing | :white_check_mark: |
OpenGL ES
GLES is also supported at a basic level. It's enabled for wasm32-unknown-unknown target, and can also be force-enabled on native:
RUSTFLAGS="--cfg gles" CARGO_TARGET_DIR=./target-gl
This path can be activated on all platforms via Angle library.
For example, on macOS it's sufficient to place libEGL.dylib and libGLESv2.dylib in the working directory.
WebGL2
Following command will start a web server offering the bunnymark example:
Vulkan Portability
First, ensure to load the environment from the Vulkan SDK:
&&
Vulkan backend can be forced on using "vulkan" config flag. Example invocation that produces a vulkan (portability) build into another target folder:
RUSTFLAGS="--cfg vulkan" CARGO_TARGET_DIR=./target-vk