Skip to content

Commit 20a5438

Browse files
author
devsh
committed
correct namespace ambiguities affecting example 23 and 29
1 parent ce268fb commit 20a5438

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/include/nbl/examples/workgroup/DataAccessors.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ struct PreloadedDataProxy
101101

102102
void preload()
103103
{
104-
const uint16_t invocationIndex = workgroup::SubgroupContiguousIndex();
104+
const uint16_t invocationIndex = hlsl::workgroup::SubgroupContiguousIndex();
105105
[unroll]
106106
for (uint16_t idx = 0; idx < PreloadedDataCount; idx++)
107107
data.template get<dtype_t, uint16_t>(idx * WorkgroupSize + invocationIndex, preloaded[idx]);
108108
}
109109
void unload()
110110
{
111-
const uint16_t invocationIndex = workgroup::SubgroupContiguousIndex();
111+
const uint16_t invocationIndex = hlsl::workgroup::SubgroupContiguousIndex();
112112
[unroll]
113113
for (uint16_t idx = 0; idx < PreloadedDataCount; idx++)
114114
data.template set<dtype_t, uint16_t>(idx * WorkgroupSize + invocationIndex, preloaded[idx]);

0 commit comments

Comments
 (0)