@@ -91,7 +91,7 @@ struct ArithmeticConfiguration
91
91
// get a coalesced index to store for the next level in shared mem, e.g. level 0 -> level 1
92
92
// specify the next level to store values for in template param
93
93
// 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)
95
95
static uint16_t sharedStoreIndex (const uint16_t virtualSubgroupID)
96
96
{
97
97
uint16_t nextLevelInvocationCount;
@@ -106,15 +106,15 @@ struct ArithmeticConfiguration
106
106
return (virtualSubgroupID & (ItemsPerInvocation_1-uint16_t (1u))) * (nextLevelInvocationCount+__padding) + (virtualSubgroupID/ItemsPerInvocation_1) + virtualSubgroupID/(SubgroupSize*ItemsPerInvocation_1);
107
107
}
108
108
109
- template<uint16_t level> // NBL_FUNC_REQUIRES(level>0 && level<LevelCount)
109
+ template<uint16_t level NBL_FUNC_REQUIRES (level>0 && level<LevelCount)
110
110
static uint16_t sharedStoreIndexFromVirtualIndex (const uint16_t subgroupID, const uint16_t workgroupInVirtualIndex)
111
111
{
112
112
const uint16_t virtualID = virtualSubgroupID (subgroupID, workgroupInVirtualIndex);
113
113
return sharedStoreIndex<level>(virtualID);
114
114
}
115
115
116
116
// 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)
118
118
static uint16_t sharedLoadIndex (const uint16_t invocationIndex, const uint16_t component)
119
119
{
120
120
uint16_t levelInvocationCount;
0 commit comments