Hi, I have 7 rects with 7 different textures. I use single RenderCommandEncoder to bind each rect's texture to 0th index of my fragment function by calling setfragmenttexture as given below:
[ renderCommandEncoder setfragmenttexture:rects[i].mtltexture atIndex:0]
Then what happens rects[0], rects[1] get rendered with rects[0]'s texture and rects[2], rects[3] get rendered with rects[1]'s texture and so on.
While each rect must be rendered with own texture because I set it everytime in loop correctly. But it is not happening. I am not able to understand why setfragmenttexture is not updating correct texture. Please help me what could be the issue here ?