Skip to content
New issue

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

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

Already on GitHub? # to your account

Add create_surface_from_handle_ref #2156

Merged
merged 2 commits into from
Mar 20, 2023
Merged

Add create_surface_from_handle_ref #2156

merged 2 commits into from
Mar 20, 2023

Conversation

marc0246
Copy link
Contributor

@marc0246 marc0246 commented Mar 18, 2023

Adds a function that can create a Surface from a reference to an impl HasRawWindowHandle + HasRawDisplayHandle, which makes it easier to work with windows that are not Send + Sync (like SDL2) while staying relatively safe.

### Additions
- Vulkano-win: Added `create_surface_from_handle_ref`.

@marc0246 marc0246 changed the title Add create_surface_from_handle_unowned Add create_surface_from_handle_ref Mar 19, 2023
@Rua Rua merged commit 08ba105 into vulkano-rs:master Mar 20, 2023
Rua added a commit that referenced this pull request Mar 20, 2023
@marc0246 marc0246 deleted the sdl2-fix branch March 20, 2023 20:44
hakolao pushed a commit to hakolao/vulkano that referenced this pull request Feb 20, 2024
* Add `create_surface_from_handle_unowned`

* Rustier name
hakolao pushed a commit to hakolao/vulkano that referenced this pull request Feb 20, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants