LiteFX::Math::alignPoT¶
Aligns a value size to an alignment alignment that is a power of two.
Synopsis¶
Declared in <litefx/math.hpp>
template<std::integral T = UInt32>
constexpr static T alignPoT(
T size,
T alignment);Return Value¶
The aligned value.
Template Parameters¶
| Name | Description |
|---|---|
| T | The type of the value to align. |
Parameters¶
| Name | Description |
|---|---|
| size | The value to align. |
| alignment | The alignment to align the value to. Must be a power of two. |