GLSL ES 中的最大程序 [英] Max programs in GLSL ES

查看:27
本文介绍了GLSL ES 中的最大程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 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 中的最大程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆