This issue is for tracking of inc_counter_array.test unexpected results on Intel.
HLSL:
RWStructuredBuffer<int> Out[4] : register(u0);
[numthreads(4,1,1)]
void main(uint GI : SV_GroupIndex) {
for (int i = 0; i < GI; i++)
Out[GI].IncrementCounter();
Out[GI][0] = Out[GI].IncrementCounter();
}
Expected result:
Counters: [ 1, 2, 3, 4 ]
Data:
- [ 0x0 ]
- [ 0x1 ]
- [ 0x2 ]
- [ 0x3 ]
Actual result:
Counters: [ 4, 6, 6, 4 ]
Data:
- [ 0x0 ]
- [ 0x3 ]
- [ 0x4 ]
- [ 0x3 ]