Skip to main content

Crate damascene_android

Crate damascene_android 

Source
Expand description

Native Android host shell for Damascene wgpu apps.

Android does not let a Rust app create a winit event loop from process-global state. The Activity glue calls the app’s exported android_main(AndroidApp), and the host must attach that value to the event-loop builder before Damascene takes over.

Downstream Android cdylib crates should export android_main and call run or run_with_config with their normal damascene_core::App.

Structs§

AndroidApp
The top-level state and interface for a native Rust application
HostConfig
Configuration for the optional native winit + wgpu host.

Functions§

run
Run an Damascene app in Android’s NativeActivity surface.
run_with_config
Run an Damascene app in Android’s NativeActivity surface with explicit host configuration.