We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d86c230 commit d542a75Copy full SHA for d542a75
test/Feature/MaximalReconvergence/subgroup_uniform_control_flow.test
@@ -1,9 +1,13 @@
1
#--- source.hlsl
2
RWStructuredBuffer<float> Out : register(u0);
3
4
+// https://www.khronos.org/blog/khronos-releases-maximal-reconvergence-and-quad-control-extensions-for-vulkan-and-spir-v
5
+// This tests that waves are correctly reconverging
6
+// after nested non-uniform branches.
7
+
8
[numthreads(8,1,1)]
9
void main(uint3 TID : SV_GroupThreadID) {
- float maxActiveLaneCount = min(WaveGetLaneCount(), 8);
10
+ float maxActiveLaneCount = min(WaveActiveSum(1), 8);
11
float div1 = 1.0/maxActiveLaneCount;
12
float div2 = 2.0/maxActiveLaneCount;
13
float div4 = 4.0/maxActiveLaneCount;
0 commit comments