@@ -22,28 +22,31 @@ namespace hlsl {
22
22
// ===----------------------------------------------------------------------===//
23
23
24
24
template <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>>
26
27
clamp (vector<T, N> p0, vector<R, N> p1, U p2) {
27
28
return __builtin_hlsl_elementwise_clamp (p0, (vector<T, N>)p1,
28
29
(vector<T, N>)p2);
29
30
}
30
31
template <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>>
32
34
clamp (vector<T, N> p0, U p1, vector<R, N> p2) {
33
35
return __builtin_hlsl_elementwise_clamp (p0, (vector<T, N>)p1,
34
36
(vector<T, N>)p2);
35
37
}
36
38
template <typename T, typename U, typename V, uint N>
37
39
constexpr __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 ),
39
42
vector<T, N>>
40
43
clamp (vector<T, N> p0, U p1, V p2) {
41
44
return __builtin_hlsl_elementwise_clamp (p0, (vector<T, N>)p1,
42
45
(vector<T, N>)p2);
43
46
}
44
47
template <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) {
47
50
return __builtin_hlsl_elementwise_clamp (p0, (vector<T, N>)p1,
48
51
(vector<T, N>)p2);
49
52
}
0 commit comments