Texture2d_array or array of texture2d

Anyone know the difference between those two?

I try to use array<texture2d, 10> in shader, but I don’t know how to pass an array of textures to shader in swift.

texture2d_array can be passed as single MTLTexture, but I can only see the first texture in the array in captured GPU frame (Xcode 10.3). Anyway to see the other elements in the array?


A texture2d_array would be the way to go, as described on p366 of the book.

You can see the slices in a captured frame from a dropdown at the bottom left where it says “Slice 0”

Thank you! I should read the book more times