@@ -22,28 +22,31 @@ namespace hlsl {
2222// ===----------------------------------------------------------------------===//
2323
2424template <typename T, typename R, typename U, uint N>
25- constexpr __detail::enable_if_t <__detail::is_arithmetic<U>::Value && (N > 1 && N <= 4 ), vector<T, N>>
25+ constexpr __detail::enable_if_t <
26+ __detail::is_arithmetic<U>::Value && (N > 1 && N <= 4 ), vector<T, N>>
2627clamp (vector<T, N> p0, vector<R, N> p1, U p2) {
2728 return __builtin_hlsl_elementwise_clamp (p0, (vector<T, N>)p1,
2829 (vector<T, N>)p2);
2930}
3031template <typename T, typename R, typename U, uint N>
31- constexpr __detail::enable_if_t <__detail::is_arithmetic<U>::Value && (N > 1 && N <= 4 ), vector<T, N>>
32+ constexpr __detail::enable_if_t <
33+ __detail::is_arithmetic<U>::Value && (N > 1 && N <= 4 ), vector<T, N>>
3234clamp (vector<T, N> p0, U p1, vector<R, N> p2) {
3335 return __builtin_hlsl_elementwise_clamp (p0, (vector<T, N>)p1,
3436 (vector<T, N>)p2);
3537}
3638template <typename T, typename U, typename V, uint N>
3739constexpr __detail::enable_if_t <__detail::is_arithmetic<U>::Value &&
38- __detail::is_arithmetic<V>::Value && (N > 1 && N <= 4 ),
40+ __detail::is_arithmetic<V>::Value &&
41+ (N > 1 && N <= 4 ),
3942 vector<T, N>>
4043clamp (vector<T, N> p0, U p1, V p2) {
4144 return __builtin_hlsl_elementwise_clamp (p0, (vector<T, N>)p1,
4245 (vector<T, N>)p2);
4346}
4447template <typename T, typename R, typename S, uint N>
45- constexpr __detail::enable_if_t <(N > 1 && N <= 4 ), vector<T, N>> clamp (vector<T, N> p0, vector<R, N> p1,
46- vector<S, N> p2) {
48+ constexpr __detail::enable_if_t <(N > 1 && N <= 4 ), vector<T, N>>
49+ clamp (vector<T, N> p0, vector<R, N> p1, vector<S, N> p2) {
4750 return __builtin_hlsl_elementwise_clamp (p0, (vector<T, N>)p1,
4851 (vector<T, N>)p2);
4952}
0 commit comments