What is the maximum size of a homogeneous array that can be passed to a shader in ios?

I use instanced rendering, passing an array of model view matrices. What is the maximum array size for a particular shape?

+5
source share
1 answer

This value will depend on the hardware and implementation. I think that

int maxUniformVectors;
glGet(GL_MAX_VERTEX_UNIFORM_VECTORS, &maxUniformVectors);

should answer your question. From documents: this should return "the maximum number of four-element floating point vectors, integer or boolean objects that can be stored in a single variable store for the vertex shader. The value must be at least 128."

+6
source

All Articles