Skip to content

Commit

Permalink
Add clamped floating point types
Browse files Browse the repository at this point in the history
This adds a new floating point type that upholds the invariant that the
value is always within the range of 0 and 1. This can be used as a
drop-in replacement for GLclampf and GLclampd types in OpenGL.
  • Loading branch information
bitwizeshift committed Oct 7, 2024
1 parent 74ea88c commit 21b0e04
Show file tree
Hide file tree
Showing 3 changed files with 698 additions and 0 deletions.
4 changes: 4 additions & 0 deletions alloy/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
mod align;
mod aligned_array;
mod clamped;
mod ieee754;
mod slice;

Expand All @@ -20,5 +21,8 @@ pub use aligned_array::*;
#[doc(inline)]
pub use slice::*;

#[doc(inline)]
pub use clamped::*;

#[doc(inline)]
pub use astd::Uuid;
Loading

0 comments on commit 21b0e04

Please sign in to comment.