-
Notifications
You must be signed in to change notification settings - Fork 4
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
Support glam and macaw types #85
Conversation
ee47d33
to
b3f614a
Compare
Can't quite merge this yet. We need some special handling of glam's types that changes depending on architecture (such as |
This should be good to go now. I've tested compiling it with and without simd support for glam (using its |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, thanks! Deref magic in glam is magic.
@@ -80,3 +80,52 @@ __private_derive_reflect_foreign! { | |||
end: Idx, | |||
} | |||
} | |||
|
|||
#[cfg(feature = "glam")] | |||
mod glam_impls { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to put this in an glam.rs
file? It's a bit weird to have it in the mod.rs
module here (I did look for it in another file when trying that PR locally.)
} | ||
|
||
#[cfg(feature = "macaw")] | ||
mod macaw_impls { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto here; even if it makes for a tiny file, it's nice to have it separate from the rest of the core types imo
Hah, auto-merge is fast! I'll open a PR with the suggested changes. |
Checklist
Description of Changes
This adds impls for
Reflect
and friends for types from glam and macaw, behind a feature flag.