gfx-rs/wgpu

SDL2 implementation broken

Khalzz opened this issue · 2 comments

WGPU is not working with SDL2 binding for rust, or at least i have not been able to make it work, since the surface creation requires access to a raw_window_handle and somehow, even though the sdl2 crate haves it as a feature it does not exists or at least it doesnt work.

If somebody has tried using sdl2 with the last release i wish i could get the way you can access to the raw window handle from this.

Wumpf commented

That would be an issue in https://github.com/Rust-SDL2/rust-sdl2 more likely?
Can you describe in a bit more detail the apis that don't work? Note that there's two ways in wgpu to create a surface by now, a safe variant and an unsafe one. Both take their own dedicated enum type which describes all the types of window handle that work with it