'DirectX 11 Loading multiple textures into Texture2DArray
Is there a way of taking an array of ID3D11Texture2D* objects and putting them together in a single ID3D11Texture2D* (with an appropriate ArraySize value) that will allow me to use a Texture2DArray in HLSL with them?
At the very least, how do you pass in the individual textures when creating a new ID3D11Texture2D object after you have set ArraySize to greater than 1? Do you need to pass in an array of SUBRESOURCE_DATA structs with each pointing to a texture to the CreateTexture2D function? I've been looking around for an answer to this, but the documentation seems severely lacking.
Thanks for any help you can provide.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
