Passing an array of Texture2D to a HLSL shader

The Texture2D constructor has an overload that takes an ArraySize parameter to specify how big the internal texture array should be. Texture2D.SetData has an overload that takes an array index.