-
Notifications
You must be signed in to change notification settings - Fork 160
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 f64 and i32 #70
Comments
Primarily thinking of adding the following initially:
The other question is how to implement them behind the scenes. More code duplication? Macros? Learn to love generics? Certainly the easy approach to get it done is code duplication but it will become unmanageable eventually. So probably macros. |
Current status of this has been done as part of #99 but I still have some things to tidy up. |
Is there a reason i64 and u64 were not included in the integers? |
Once the glam API is stable (e.g. 1.0) I think it would make sense to add support for f64 and i32. I still would avoid using generics, since I couldn't easily provide SIMD implementation without specialisation, and even if specialisation was available it would complicate the API using generics. So perhaps some macros behind the scenes or just copy and paste. A lot of functionality is pretty simple so I don't think duplication is the end of the world, once the API is stable.
The text was updated successfully, but these errors were encountered: