You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Texture arrays are supported in a different way. When constructing a Texture2D use the overload that takes an int array parameter. In your shader use Texture2DArray for the texture array type and when sampling use the z parameter as the index of the texture.
I don't know if you can ever use Texture2D[]. The compiler allows it at least. We could catch it in the parser and warn or error, and point users to Texture2DArray.
Hello,
if an array of the form:
float4 floats[10]
is declared, effect.Parameters["floats"].Elements.Count returns 10 as value which is obviously correct.
However, when declaring
Texture2D textures[10] monogame does not recognize it as an array and .Elements.Count returns 0.
Is this a bug or are texture arrays not implemented yet?
Best wishes.
The text was updated successfully, but these errors were encountered: