我通过传递模型 View 矩阵数组来使用实例化渲染。特定制服的最大数组大小是多少?
最佳答案
此值因硬件和实现而异。我相信
int maxUniformVectors;
glGet(GL_MAX_VERTEX_UNIFORM_VECTORS, &maxUniformVectors);
应该回答你的问题。
来自docs :
This should return "the maximum number of four-element floating-point, integer, or boolean vectors that can be held in uniform variable storage for a vertex shader. The value must be at least 128.
关于iphone - 可以传递给 ios 中的着色器的统一数组的最大大小是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16090462/