Anyone know the upperbound of the textures in Metal
Refer to : setFragmentTextures:withRange:
Recently, I want to render lots of subtitles use the kernel function, steps as below:
- turn the each subtitle to texture? so it’s may be a lots of texture need to send the GPU
- in the kernel function, update the position for each texture
- if some texture was out of the screen, then reuse the texture or update the list of textures
So, use the - (void)setFragmentTextures:(id _Nullable const *)textures withRange:(NSRange)range is the correct way?