max number of shaders on a gpu?
For my app I'm looking at having about 30 fragment shaders.
Is there an upper limit on the number of shaders and if so how do I find it ?
cheers
Ade
What do you mean with having 30 shaders?
You can have n shaders but there is always just one vertex- and one pixelshader active when drawing.
So you have to choose the correct shader for each render pass.
You can combine the output of different shaders by using multiple render passes.
Greetings
Jan
You can have n shaders but there is always just one vertex- and one pixelshader active when drawing.
So you have to choose the correct shader for each render pass.
You can combine the output of different shaders by using multiple render passes.
Greetings
Jan
Nope there is no upper limit! ;)
I am having around 25 different shaders for different things.
Although I am using just 4 or 5 at the moment with different textures and parameters.
I am having around 25 different shaders for different things.
Although I am using just 4 or 5 at the moment with different textures and parameters.
If you are really interested in the max number, it should be good old 2^32-1
Just like you can create 2^32-1 textures
2^32-1 display lists
2^32-1 VBO
2^32-1 FBO
and so on.
You will know you have reached the maximum when you get GL_OUT_OF_MEMORY
Just like you can create 2^32-1 textures
2^32-1 display lists
2^32-1 VBO
2^32-1 FBO
and so on.
You will know you have reached the maximum when you get GL_OUT_OF_MEMORY
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement