LiteFX::Math::align¶
Aligns a value size to an alignment alignment.
Synopsis¶
Declared in <litefx/math.hpp>
template<typename T = UInt32>
constexpr static T align(
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. |