Skip to content

Commit 4f32484

Browse files
committed
Forgot about these when I pushed the bitfield insert
1 parent abacb60 commit 4f32484

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/nbl/builtin/hlsl/type_traits.hlsl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,12 @@ struct enable_if<true, T> : type_identity<T> {};
392392
template<bool B, class T = void>
393393
using enable_if_t = typename enable_if<B, T>::type;
394394

395+
template<class T>
396+
NBL_CONSTEXPR_STATIC_INLINE bool is_integral_v = is_integral<T>::value;
397+
398+
template<class T>
399+
NBL_CONSTEXPR_STATIC_INLINE bool is_scalar_v = is_scalar<T>::value;
400+
395401
template<class T>
396402
struct alignment_of;
397403
template<class T>

0 commit comments

Comments
 (0)