Skip to content

Commit 527129f

Browse files
author
kevyuu
committed
Remove redundant extent
1 parent 1255d1c commit 527129f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/nbl/builtin/hlsl/concepts/vector.hlsl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ NBL_BOOL_CONCEPT SignedIntVectorial = concepts::Vectorial<T> && concepts::Signed
4646

4747
}
4848

49-
template<typename Vectorial>
50-
NBL_PARTIAL_REQ_TOP(concepts::Vectorial<Vectorial>)
51-
struct extent<Vectorial, 0 NBL_PARTIAL_REQ_BOT(concepts::Vectorial<Vectorial>) > : integral_constant<uint64_t, vector_traits<Vectorial>::Dimension> {};
52-
5349
}
5450
}
5551
#endif

include/nbl/builtin/hlsl/emulated/vector_t.hlsl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,8 @@ NBL_EMULATED_VEC_TRUNCATION(4, 4)
627627

628628
} //namespace impl
629629

630+
template<typename T, uint16_t N, uint32_t I>
631+
struct extent<emulated_vector_t<T, N>, I> : extent<T[N], I> {};
630632
}
631633
}
632634
#endif

0 commit comments

Comments
 (0)