Const all the floating point arithmetic #16124
Labels
A-Color
Color spaces and color math
A-Math
Fundamental domain-agnostic mathematical operations
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
D-Trivial
Nice and easy! A great choice to get started with Bevy
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
X-Contentious
There are nontrivial implications that should be thought through
Milestone
What problem does this solve or what need does it fill?
As seen in #16091, floating point arithmetic can now be used in constant functions! This is a valuable API improvement, as it allows users to define their own derived constants using our handy math operations.
What solution would you like?
We should constify our APIs, one crate at a time. The critical ones are:
This should be kept to relatively simple functions and methods: only things that we can commit to being const indefinitely.
What alternative(s) have you considered?
Do let me know if I've missed a crate that needs this treatment!
Additional context
glam
is open to making much of their API const which will unblock a ton of improvements in Bevy itself, although it's harder than one might expect there, due to SIMD support.The text was updated successfully, but these errors were encountered: