Description
The vulkan backend fails to initialize in renderdoc on wayland.
I am not sure where the responsibility lie between wgpu, winit and renderdoc. I'll document what I know here for future reference because I periodically forget and re-investigate the issue:
I wonder whether when we get to create_surface_from_wayland it is still possible initialize the surface via another method or whether the presence of the extension should be checked earlier. Ideally wgpu applications would work in renderdoc with wayland without having to know about forcing the X11 backend.
Workaround
As far as local testing goes, using winit's x11 backend seems to be a sufficient workaround (set the WINIT_UNIX_BACKEND environment variable to "x11").
Repro steps
Run any of this repository's examples in renderdoc with the WGPU_BACKEND environment variable set to "vulkan" under wayland.
Platform
Linux with wayland
Description
The vulkan backend fails to initialize in renderdoc on wayland.
I am not sure where the responsibility lie between wgpu, winit and renderdoc. I'll document what I know here for future reference because I periodically forget and re-investigate the issue:
VK_KHR_wayland_surfaceis missing.I wonder whether when we get to
create_surface_from_waylandit is still possible initialize the surface via another method or whether the presence of the extension should be checked earlier. Ideally wgpu applications would work in renderdoc with wayland without having to know about forcing the X11 backend.Workaround
As far as local testing goes, using winit's x11 backend seems to be a sufficient workaround (set the
WINIT_UNIX_BACKENDenvironment variable to "x11").Repro steps
Run any of this repository's examples in renderdoc with the
WGPU_BACKENDenvironment variable set to "vulkan" under wayland.Platform
Linux with wayland