if you actually wanted to use Texture2DArray, which is a different type that stores an array of textures in GPU memory instead of separate textures, then sadly it is not implemented yet with full support as i know it. I heard it was planned to ship with 4.19 but it did not.