This project has moved and is read-only. For the latest updates, please go here.

Creating texture array

Mar 2, 2015 at 9:57 PM
Documentation says that dds tools supports texture array. But function definitions doesn't even have array size parameter. How can I create such a texture?
Mar 2, 2015 at 10:37 PM
Edited Mar 2, 2015 at 10:38 PM
The DirectXTex tool texassemble can be used to create a texture array, cubemap array, or volume array as a DDS from individual image files. You then use texconv to convert it to the desired formats, add mipmap chains, block-compress, etc.

DDSTextureLoader will create the resource from the resulting DDS file. Keep in mind that loading a texture array DDS will fail on Direct3D feature level 9.x devices, and that loading a cubemap array DDS will fail on Direct3D feature level 9.x and 10.0 devices.
Marked as answer by walbourn on 3/2/2015 at 2:37 PM
Mar 3, 2015 at 8:57 AM
Thank you a lot. I didn't know that format support array in one file. I tried and everything works fine.