(
#[cfg(target_os = "android")] android_app: winit::platform::android::activity::AndroidApp,
)
| 223 | |
| 224 | #[cfg_attr(target_os = "android", export_name = "android_main")] |
| 225 | pub fn main( |
| 226 | #[cfg(target_os = "android")] android_app: winit::platform::android::activity::AndroidApp, |
| 227 | ) { |
| 228 | let options: Options = Options::from_args(); |
| 229 | |
| 230 | #[cfg(not(any(target_os = "android", target_arch = "wasm32")))] |
| 231 | if options.shader == RustGPUShader::Compute { |
| 232 | return compute::start(&options); |
| 233 | } |
| 234 | |
| 235 | graphics::start( |
| 236 | #[cfg(target_os = "android")] |
| 237 | android_app, |
| 238 | &options, |
| 239 | ); |
| 240 | } |