[ask] need example Texture2DArray in hlsl
hi there. i'm still learning how to code on hlsl. I need to port from dx10 to dx9, seems it would be differ, dx9 doesn't support fixed array on Texture2D. How to access each array in Texture2DArray? Could you give me some code for it.
thanks :)
D3D9 has no concept of texture arrays.
In D3D10, you access the array members by using the (n+1)th texture coordinate component, where n is the dimensionality of a single array element. For example, in case of an array with 2d textures, xy is used for the 2d location as usual and z is the index of the 2d texture in the array.
In D3D10, you access the array members by using the (n+1)th texture coordinate component, where n is the dimensionality of a single array element. For example, in case of an array with 2d textures, xy is used for the 2d location as usual and z is the index of the 2d texture in the array.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement