问题描述
在GLSL ES中最多可以编译多少个程序?因此,可以说我创建了100个片段着色器,每个着色器都有不同的效果.因此,在运行时,我将它们全部编译并动态地与glUseProgram交换它们.我假设每次我编译一个新的GLSL-ES程序时,它都会保存在GPU中.活动编译程序的数量有最大数量吗?
What is the maximum number of programs that can be compiled in GLSL ES?So lets say I create 100 fragment shaders, each is a different effect. So at runtime I compile all of them and dynamically I swap them with glUseProgram.I assume that everytime I compile a new GLSL-ES program it holds in somwhere in the GPU. Is there any maximum number of the amount of active compiled programs?
推荐答案
没有最大限制.唯一的限制是由GPU或其驱动程序控制的可用内存或其他资源.
There is no maximum limit. Only limitation is available memory or other resources that is controlled by GPU or its driver.
以同样的方式,纹理对象或顶点缓冲对象的数量没有最大限制.
In a same way there is no maximum limit for count of texture objects or vertex buffer objects.
这篇关于GLSL ES中的最大程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!