Say I have a cubemap array and a shading program to render depth maps.

I want to iteratively render to a single cubemap in the cubemap array for each light.

In other words I want to select a subsection of the cube mapo array to which the shading rpogram will output it's shading information.