You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im trynna run wgpu on web using winit and wasm but i cant create a surface
panicked at src/window.rs:63:63:
called Result::unwrap() on an Err value: CreateSurfaceError { inner: Web("canvas.getContext() returned null; webgpu not available or canvas already in use") }
let instance = wgpu::Instance::new(wgpu::InstanceDescriptor {
backends: wgpu::Backends::all(),
dx12_shader_compiler: Default::default(),
flags: wgpu::InstanceFlags::default(),
gles_minor_version: Default::default(),
});
let surface = instance.create_surface(window.clone()).unwrap();
ive been trying to fix it for days but i havent figured it out yet
The text was updated successfully, but these errors were encountered:
im trynna run wgpu on web using winit and wasm but i cant create a surface
panicked at src/window.rs:63:63:
called
Result::unwrap()
on anErr
value: CreateSurfaceError { inner: Web("canvas.getContext() returned null; webgpu not available or canvas already in use") }The text was updated successfully, but these errors were encountered: