I'm just wondering how I can use Texture2DArray in HLSL.
I am trying to implement a model loader where models have different amount of textures. At the moment my HLSL uses Texture2D with a size of 2 (texture and normal textures) but as my models have varying amounts of textures, I am looking to use Texture2DArray but have no clue where to start. I've been trying to find examples and such on the internet but have had no luck :(
I load in textures which are compiled to 'ID3D11ShaderResourceView*' so should I create a variable ID3D11ShaderResourceView** which I create an array of points to textures then pass that to the shader or what?
Any help?