Skip to content

Commit 751a3ff

Browse files
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla into vulkan_1_3
2 parents ecdad34 + 885d309 commit 751a3ff

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

3rdparty/dxc/dxc

Submodule dxc updated 311 files

include/nbl/builtin/hlsl/glsl_compat/core.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace glsl
1818
template<typename T>
1919
T atomicAdd(NBL_REF_ARG(T) ptr, T value)
2020
{
21-
return spirv::atomicAnd<T>(ptr, spv::ScopeDevice, spv::DecorationRelaxedPrecision, value);
21+
return spirv::atomicAdd<T>(ptr, spv::ScopeDevice, spv::DecorationRelaxedPrecision, value);
2222
}
2323
template<typename T>
2424
T atomicAnd(NBL_REF_ARG(T) ptr, T value)

include/nbl/builtin/hlsl/workgroup/arithmetic.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ template<bool Exclusive, uint16_t ItemCount, class BallotAccessor, class Arithme
9898
uint16_t ballotScanBitCount(NBL_REF_ARG(BallotAccessor) ballotAccessor, NBL_REF_ARG(ArithmeticAccessor) arithmeticAccessor)
9999
{
100100
const uint16_t subgroupIndex = SubgroupContiguousIndex();
101-
const uint16_t bitfieldIndex = impl::getDWORD(subgroupIndex);
101+
const uint16_t bitfieldIndex = getDWORD(subgroupIndex);
102102
const uint32_t localBitfield = ballotAccessor.get(bitfieldIndex);
103103

104104
static const uint16_t DWORDCount = impl::ballot_dword_count<ItemCount>::value;
@@ -111,7 +111,7 @@ uint16_t ballotScanBitCount(NBL_REF_ARG(BallotAccessor) ballotAccessor, NBL_REF_
111111
arithmeticAccessor.set(subgroupIndex,count);
112112
arithmeticAccessor.workgroupExecutionAndMemoryBarrier();
113113
count = arithmeticAccessor.get(bitfieldIndex);
114-
return uint16_t(countbits(localBitfield&(Exclusive ? glsl::gl_SubgroupLtMask():glsl::gl_SubgroupLeMask())[0])+count);
114+
return uint16_t(countbits(localBitfield&(Exclusive ? glsl::gl_SubgroupLtMask():glsl::gl_SubgroupLeMask())[getDWORD(glsl::gl_SubgroupInvocationID())])+count);
115115
}
116116
}
117117

tools/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
add_subdirectory(nsc)
1+
add_subdirectory(nsc)

0 commit comments

Comments
 (0)