Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL2 implementation broken #5638

Open
Khalzz opened this issue Apr 30, 2024 · 2 comments
Open

SDL2 implementation broken #5638

Khalzz opened this issue Apr 30, 2024 · 2 comments
Labels
area: ecosystem Help the connected projects grow and prosper type: question Further information is requested

Comments

@Khalzz
Copy link

Khalzz commented Apr 30, 2024

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
Copy link
Member

Wumpf commented Apr 30, 2024

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

@Wumpf Wumpf added type: question Further information is requested area: ecosystem Help the connected projects grow and prosper labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ecosystem Help the connected projects grow and prosper type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants