MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / main

Function main

examples/runners/wgpu/src/lib.rs:225–240  ·  view source on GitHub ↗
(
    #[cfg(target_os = "android")] android_app: winit::platform::android::activity::AndroidApp,
)

Source from the content-addressed store, hash-verified

223
224#[cfg_attr(target_os = "android", export_name = "android_main")]
225pub 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}

Callers

nothing calls this directly

Calls 1

startFunction · 0.70

Tested by

no test coverage detected