Gfx-hal quad example running on Windows, Linux, Mac, iOS, Android
Gfx-hal quad example running on Windows, Linux, Mac, iOS, Android.
cd rust/game_desktop/
cargo run --features target
Where target
: mac
(Metal), linux
(Vulkan), pc_dx12
(DirectX 12) or pc_dx11
(DirectX 11).
rustup target add aarch64-apple-ios
cd
to the ios
directorycd ios/
xcodegen
rustup target add armv7-linux-androideabi
cargo install --git https://github.com/rust-windowing/android-rs-glue.git cargo-apk
JAVA_HOME
, NDK_HOME
, ANDROID_HOME
, GRADLE_HOME
.cd
to the rust/game_android
directorycargo-apk build
cd
to the project_root/target/android-artifacts
directorycp -fr $NDK_HOME/sources/third_party/vulkan/src/build-android/jniLibs/armeabi-v7a app/src/main/
gradle assembleDebug
gradle installDebug
adb logcat | grep RustAndroidGlueStdouterr