You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are macros to create const glam types, Transform is a bevy type so that's a bit trickier. It contains a Quat and Quat::new cannot be made const fn because it uses SSE __m128 for storage and there is no const fn to initialise one of those. That is the problem, this needs to be addressed in Rust's std::arch. Bevy could create a const_transform! macro using the glam ones in the interim. You can make a const Vec2 using glam::const_vec2!.
This is very useful for specifying configuration. For example, in Bevy I'm trying to write:
but neither of these are const fn's :(
The text was updated successfully, but these errors were encountered: