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
Hashing functions like hash_float_array are provided because sometimes it is not possible or ergonomic to use wrapper types within another type. README.md mentions this example:
This vertex type may be fed to graphics code that expects raw floating point data (for example, see the gfx pipeline macros and shader compilers).
A similar problem exists for implementing Eq: if it is not possible or ergonomic to use wrapper types, there is currently no convenient way to implement Eq. This can be done via conversions, but that gets messy fairly quickly. Instead, Decorum should provide eq_float, eq_float_slice, and eq_float_array functions that are analogous to the hashing functions.
The text was updated successfully, but these errors were encountered:
Hashing functions like
hash_float_array
are provided because sometimes it is not possible or ergonomic to use wrapper types within another type.README.md
mentions this example:This vertex type may be fed to graphics code that expects raw floating point data (for example, see the gfx pipeline macros and shader compilers).
A similar problem exists for implementing
Eq
: if it is not possible or ergonomic to use wrapper types, there is currently no convenient way to implementEq
. This can be done via conversions, but that gets messy fairly quickly. Instead, Decorum should provideeq_float
,eq_float_slice
, andeq_float_array
functions that are analogous to the hashing functions.The text was updated successfully, but these errors were encountered: