mira
Pure and simple Vulkan bindings generated from Vulkan-Headers!
Mira provides a simple and straightforward way to interact with Vulkan. Everything was generated by bindgen and uses the original API names.
This crate provides:
- 👀 Function pointers!
- 💯 Dynamic loader of instance and device commands!
- ✍️ Original names of commands, structures and macros!
- 💪 Extra useful features to help with development!
- 😀 Simple examples!
Code
Enumerate all instance extensions.
use MiraError;
use loader;
use ;
use *;
use *;
Examples
Successfully tested on Linux(Lubuntu 20.04) with Intel(R) HD Graphics 620 (KBL GT2).
Color
Displays a window with a purple background.
cargo run --example color

Android build
Android NDK: 22.1.7171670
- Add ${HOME}/Android/Sdk/ndk/${NDK_VERSION}toolchains/llvm/prebuilt/linux-x86_64/bin to PATH.
export PATH=$PATH:/home/xxxx/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin
- Add Android target of your choice(aarch64-linux-android, armv7-linux-androideabi, x86_64-linux-android ...)
rustup target add aarch64-linux-android
- Run cargo build --target ${TARGET}
cargo build --target aarch64-linux-android
Vulkan version
1.3.252