We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 664c129 commit f3a6981Copy full SHA for f3a6981
1 file changed
include/nbl/builtin/hlsl/bda/bda_accessor.hlsl
@@ -66,15 +66,15 @@ struct BdaAccessor : impl::BdaAccessorBase
66
atomicAdd(const uint64_t index, const T value)
67
{
68
bda::__ptr<T> target = ptr + index;
69
- return glsl::atomicAdd(target.template deref().get_ptr(), value);
+ return glsl::atomicAdd(target.template deref().ptr.value, value);
70
}
71
72
template<typename S = T>
73
enable_if_t<is_same_v<S,T> && is_integral<T>::value && (sizeof(T) == 4 || sizeof(T) == 8), T>
74
atomicSub(const uint64_t index, const T value)
75
76
77
- return glsl::atomicSub(target.template deref().get_ptr(), value);
+ return glsl::atomicSub(target.template deref().ptr.value, value);
78
79
80
bda::__ptr<T> ptr;
0 commit comments