File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
include/nbl/builtin/hlsl/emulated Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,15 @@ DEFINE_SCALAR_OF_SPECIALIZATION(3)
491491DEFINE_SCALAR_OF_SPECIALIZATION (4 )
492492#undef DEFINE_SCALAR_OF_SPECIALIZATION
493493
494+ #define DEFINE_EXTENT_SPECIALIZATION (DIMENSION)\
495+ template<typename ScalarType, uint32_t I>\
496+ struct extent<emulated_vector_t##DIMENSION<ScalarType>, I> : extent<ScalarType[DIMENSION], I> {};
497+
498+ DEFINE_EXTENT_SPECIALIZATION (2 )
499+ DEFINE_EXTENT_SPECIALIZATION (3 )
500+ DEFINE_EXTENT_SPECIALIZATION (4 )
501+ #undef DEFINE_EXTENT_SPECIALIZATION
502+
494503namespace impl
495504{
496505template<typename To, typename From>
@@ -627,8 +636,6 @@ NBL_EMULATED_VEC_TRUNCATION(4, 4)
627636
628637} //namespace impl
629638
630- template<typename T, uint16_t N, uint32_t I>
631- struct extent<emulated_vector_t<T, N>, I> : extent<T[N], I> {};
632639}
633640}
634641#endif
You can’t perform that action at this time.
0 commit comments