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

Update wgpu to 0.19 and winit to 0.29 #107

Merged
merged 3 commits into from
Mar 4, 2024
Merged

Conversation

LukasKalbertodt
Copy link
Contributor

The wgpu update is useful for users of this crate, while the winit update is only relevant to the examples in this repo. I also touched up the WGSL code. If you prefer, I can remove the last commit.

This can be be reviewed commit by commit.

Changelogs: wgpu, winit


Thanks for this crate btw. I know the README now says this has been superseeded by glyphon, but I still think there is a place for wgpu_glyph. At least for now. Switching to glyphon isn't straight forward if you are already using wgpu_glyph and cosmic-text still lacks some features like changing font size within one text block. So thanks for still maintaining this!

Only the examples needed adjustments.
It looks like this code has been written quite a while ago, presumably
when the capabilities of naga regarding WGSL were quite limited yet. I
changed some stuff to what I would perceive as more idiomatic. I removed
a bunch of type annotations, used built-in type aliases, and even used
abstract types new with wgpu 0.19.
@Cryptjar
Copy link

Cryptjar commented Mar 3, 2024

Are there any plans to merge this any time soon?

Copy link
Owner

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry! Totally forgot about this.

Thank you!

@hecrj hecrj added this to the 0.23.0 milestone Mar 4, 2024
@hecrj hecrj merged commit 5d78e60 into hecrj:master Mar 4, 2024
3 checks passed
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.

3 participants