Skip to content

Commit 3f3a23e

Browse files
author
kevyuu
committed
Add comment to rename log2
1 parent d7bd053 commit 3f3a23e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/nbl/builtin/hlsl/mpl.hlsl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ struct round_up_to_pot : integral_constant<uint64_t, uint64_t(1) << log2_ceil_v<
110110
template<uint64_t X>
111111
NBL_CONSTEXPR uint64_t round_up_to_pot_v = round_up_to_pot<X>::value;
112112

113+
// TODO: should rename log2 to log2_floor
113114
template<uint64_t X>
114115
struct round_down_to_pot : integral_constant<uint64_t, uint64_t(1) << log2_v<X> > {};
115116
template<uint64_t X>

0 commit comments

Comments
 (0)