Running on Android - gfx-rs/wgpu GitHub Wiki
Surface creation
On Android surface creation should happen on the Resume
event and surface cleanup on the Suspended
event of the window. A valid surface can not be created beforehand. This means using winit
, sdl2
or anything similar, surface creation could happen like this:
Event::Resumed => { let surface = unsafe { instance.create_surface(&window) }; //... }