Open GL:如何使用不同的着色器

问题描述:

我想在OpenGL输出上使用一些bmp-texture和一些YUV数据。



什么是最好的策略:使用不同的OpenGL-程序或在运行时切换着色器。

I want to use some bmp-texture and some YUV data on a OpenGL output.

What is the best strategie: use different OpenGL-"programs" or switch the shaders at runtime.