Skip to content

Commit 29e7ee7

Browse files
committed
add convergent attribute
1 parent b9c17e4 commit 29e7ee7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Headers/hlsl/hlsl_intrinsics.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,11 +1471,13 @@ double4 trunc(double4);
14711471
/// true, across all active lanes in the current wave.
14721472
_HLSL_AVAILABILITY(shadermodel, 6.0)
14731473
_HLSL_BUILTIN_ALIAS(__builtin_hlsl_wave_active_count_bits)
1474+
__attribute__((convergent))
14741475
uint WaveActiveCountBits(bool Val);
14751476

14761477
/// \brief Returns the index of the current lane within the current wave.
14771478
_HLSL_AVAILABILITY(shadermodel, 6.0)
14781479
_HLSL_BUILTIN_ALIAS(__builtin_hlsl_wave_get_lane_index)
1480+
__attribute__((convergent))
14791481
uint WaveGetLaneIndex();
14801482

14811483
} // namespace hlsl

0 commit comments

Comments
 (0)