wgpu_sdl_linker 1.3.0

A micro library which allows linking wgpu surface into an SDL2 window safely.
Documentation
1
2
3
4
5
6
7
8
9
///
/// Attempts to link the SDL2 window into wgpu to create a surface.
///
pub fn link_wgpu_to_sdl2(
  instance: &wgpu::Instance,
  window: &sdl2::video::Window,
) -> Result<wgpu::Surface, wgpu::CreateSurfaceError> {
  unsafe { instance.create_surface(window) }
}