3
3
// For conditions of distribution and use, see copyright notice in nabla.h
4
4
#ifndef _NBL_BUILTIN_HLSL_BINOPS_INCLUDED_
5
5
#define _NBL_BUILTIN_HLSL_BINOPS_INCLUDED_
6
- // TODO (PentaKon): Should we move isNPoT from algorithm.hlsl to this file ?
6
+
7
7
namespace nbl
8
8
{
9
9
namespace hlsl
@@ -38,7 +38,7 @@ struct bitwise_xor
38
38
};
39
39
40
40
template<typename T>
41
- struct bitwise_add
41
+ struct add
42
42
{
43
43
T operator ()(const T lhs, const T rhs)
44
44
{
@@ -47,7 +47,7 @@ struct bitwise_add
47
47
};
48
48
49
49
template<typename T>
50
- struct bitwise_mul
50
+ struct mul
51
51
{
52
52
T operator ()(const T lhs, const T rhs)
53
53
{
@@ -56,7 +56,7 @@ struct bitwise_mul
56
56
};
57
57
58
58
template<typename T, class Comparator>
59
- struct bitwise_min
59
+ struct min
60
60
{
61
61
T operator ()(const T lhs, const T rhs, inout Comparator comp)
62
62
{
@@ -65,7 +65,7 @@ struct bitwise_min
65
65
};
66
66
67
67
template<typename T>
68
- struct bitwise_min
68
+ struct min
69
69
{
70
70
T operator ()(const T lhs, const T rhs)
71
71
{
@@ -75,7 +75,7 @@ struct bitwise_min
75
75
};
76
76
77
77
template<typename T, class Comparator>
78
- struct bitwise_max
78
+ struct max
79
79
{
80
80
T operator ()(const T lhs, const T rhs, inout Comparator comp)
81
81
{
@@ -84,7 +84,7 @@ struct bitwise_max
84
84
};
85
85
86
86
template<typename T>
87
- struct bitwise_max
87
+ struct max
88
88
{
89
89
T operator ()(const T lhs, const T rhs)
90
90
{
0 commit comments