Skip to content

Commit f9d6c1a

Browse files
authored
Update bda_accessor.hlsl
Removes atomics for doubleBda
1 parent f65c674 commit f9d6c1a

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

include/nbl/builtin/hlsl/bda/bda_accessor.hlsl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,6 @@ struct DoubleBdaAccessor
9090
return target.template deref().store(value);
9191
}
9292

93-
template<typename S = T>
94-
enable_if_t<is_same_v<S,T> && is_integral<T>::value && (sizeof(T) == 4 || sizeof(T) == 8), T>
95-
atomicAdd(const uint64_t index, const T value)
96-
{
97-
bda::__ptr<T> target = outputPtr + index;
98-
return glsl::atomicAdd(target.template deref().get_ptr(), value);
99-
}
100-
101-
template<typename S = T>
102-
enable_if_t<is_same_v<S,T> && is_integral<T>::value && (sizeof(T) == 4 || sizeof(T) == 8), T>
103-
atomicSub(const uint64_t index, const T value)
104-
{
105-
bda::__ptr<T> target = outputPtr + index;
106-
return glsl::atomicSub(target.template deref().get_ptr(), value);
107-
}
108-
10993
bda::__ptr<T> inputPtr, outputPtr;
11094
};
11195

0 commit comments

Comments
 (0)