I have an array of textures in the shader such as Texture2D pTextures[30], and I want to use a dynamic index instead of a specified index. Is there possible to do such thing? and how to do it?.
For example:
Use pTextures[ID] with ID is computed at runtime, instead of pTextures[x] with x is a specified value.