Buffer of arrays in HLSL compute shader
It looks to me like you want a buffer containing a single array of integers (not a buffer containing multiple arrays, whatever that would mean). So, you should be able to just do this:

RWBuffer&lt;int&gt; indices;


then access it like this:

indices[int(id.y)]