I have list of files, now I want to create a Texture2DArray and bind to the shader but I do not know how to do it.
According to MJP in this topic: http://www.gamedev.net/topic/612963-how-do-i-load-id3d10shaderresourceview-into-texture2darray/. If we load all of textures using D3DX11CreateTextureFromFile, then all of textures need to be the same size, have the same format, and have the same number of mip levels. But all I have are a list of files (bmp, jpg....) and I think they have different sizes.
Anybody help me, please? If you have time, could you give me an example with source code?. Thank in advance.