Skip to content

Commit ce77b46

Browse files
committed
uncomment some concept requires
1 parent 3a90fa8 commit ce77b46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/nbl/builtin/hlsl/workgroup2/arithmetic_config.hlsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ struct ArithmeticConfiguration
9191
// get a coalesced index to store for the next level in shared mem, e.g. level 0 -> level 1
9292
// specify the next level to store values for in template param
9393
// at level==LevelCount-1, it is guaranteed to have SubgroupSize elements
94-
template<uint16_t level>// NBL_FUNC_REQUIRES(level>0 && level<LevelCount)
94+
template<uint16_t level NBL_FUNC_REQUIRES(level>0 && level<LevelCount)
9595
static uint16_t sharedStoreIndex(const uint16_t virtualSubgroupID)
9696
{
9797
uint16_t nextLevelInvocationCount;
@@ -106,15 +106,15 @@ struct ArithmeticConfiguration
106106
return (virtualSubgroupID & (ItemsPerInvocation_1-uint16_t(1u))) * (nextLevelInvocationCount+__padding) + (virtualSubgroupID/ItemsPerInvocation_1) + virtualSubgroupID/(SubgroupSize*ItemsPerInvocation_1);
107107
}
108108

109-
template<uint16_t level>// NBL_FUNC_REQUIRES(level>0 && level<LevelCount)
109+
template<uint16_t level NBL_FUNC_REQUIRES(level>0 && level<LevelCount)
110110
static uint16_t sharedStoreIndexFromVirtualIndex(const uint16_t subgroupID, const uint16_t workgroupInVirtualIndex)
111111
{
112112
const uint16_t virtualID = virtualSubgroupID(subgroupID, workgroupInVirtualIndex);
113113
return sharedStoreIndex<level>(virtualID);
114114
}
115115

116116
// get the coalesced index in shared mem at the current level
117-
template<uint16_t level>// NBL_FUNC_REQUIRES(level>0 && level<LevelCount)
117+
template<uint16_t level NBL_FUNC_REQUIRES(level>0 && level<LevelCount)
118118
static uint16_t sharedLoadIndex(const uint16_t invocationIndex, const uint16_t component)
119119
{
120120
uint16_t levelInvocationCount;

0 commit comments

Comments
 (0)