Skip to content

Commit f3a6981

Browse files
author
devsh
committed
fix bda_accessor.hlsl
1 parent 664c129 commit f3a6981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ struct BdaAccessor : impl::BdaAccessorBase
6666
atomicAdd(const uint64_t index, const T value)
6767
{
6868
bda::__ptr<T> target = ptr + index;
69-
return glsl::atomicAdd(target.template deref().get_ptr(), value);
69+
return glsl::atomicAdd(target.template deref().ptr.value, value);
7070
}
7171

7272
template<typename S = T>
7373
enable_if_t<is_same_v<S,T> && is_integral<T>::value && (sizeof(T) == 4 || sizeof(T) == 8), T>
7474
atomicSub(const uint64_t index, const T value)
7575
{
7676
bda::__ptr<T> target = ptr + index;
77-
return glsl::atomicSub(target.template deref().get_ptr(), value);
77+
return glsl::atomicSub(target.template deref().ptr.value, value);
7878
}
7979

8080
bda::__ptr<T> ptr;

0 commit comments

Comments
 (0)