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

Add Surface::from_window[_ref], deprecate vulkano-win #2204

Merged
merged 6 commits into from
May 12, 2023

Conversation

marc0246
Copy link
Contributor

@marc0246 marc0246 commented May 11, 2023

This rids us of a dependency on winit, since raw-window-handle is all that's needed, once we murk vulkano-win for good. It's also easier for the user since they don't need to add another crate, and the way a surface is created now is much more natural.

Closes #2088

Changelog:

### Additions
- Added `Surface::from_window[_ref]` and `Surface::required_extensions`. This is now the preferred way of creating a surface, vulkano-win has been deprecated.

@Rua Rua merged commit 77fa2bb into vulkano-rs:master May 12, 2023
Rua added a commit that referenced this pull request May 12, 2023
@marc0246 marc0246 deleted the surface-from-window branch May 12, 2023 18:28
@esdevver
Copy link

I really like this, and I use winit for my project anyway. In fact it makes it easier to use winit. Means I don't have to patch and dependencies! Thanks!

@voidburn
Copy link

I love the way you think! This completely solves the issue I was having with separating the concern of building the window (something I want the user to do on their own terms) from that of initializing the Vulkan's instance and surface (something I want my framework to handle).

Thanks!

hakolao pushed a commit to hakolao/vulkano that referenced this pull request Feb 20, 2024
)

* Add `Surface::from_window[_ref]`

* Add `Surface::required_extensions`

* Deprecate vulkano-win

* Fix SPIR-V word alignment in tests

* Fix oopsie

* Remove pointer transmute
hakolao pushed a commit to hakolao/vulkano that referenced this pull request Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants