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

Invert glam dependency #641

Merged
merged 1 commit into from
Jun 2, 2021
Merged

Invert glam dependency #641

merged 1 commit into from
Jun 2, 2021

Conversation

khyperia
Copy link
Contributor

@khyperia khyperia commented Jun 1, 2021

As discussed a couple weeks ago in the rust-gpu weekly meeting, invert the glam dependency back to spirv-std depending on glam.

Going forward, we'll want to keep spirv-std completely agnostic other than specifically these trait impls, so it stays a fully generic library. The trait impls are also behind a feature flag, so someone can swap out glam for another vector library and not even compile glam at all (although they'll have to either impl the traits in that vector library and make it depend on spirv-std, or submit a PR adding another set of trait impls behind a feature flag like glam is here)

The complementary PR to glam is here bitshifter/glam-rs#189 but thankfully, we don't need to wait for that to go through and get into a glam release, since we can simply remove the spirv-std feature flag of glam and cargo is happy with that.

@khyperia khyperia requested review from eddyb, fu5ha and VZout as code owners June 1, 2021 12:26
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.

2 participants