OpenGL Shading Program Object Memory Requirement
Posted
by
Hans Wurst
on Game Development
See other posts from Game Development
or by Hans Wurst
Published on 2012-08-08T18:59:32Z
Indexed on
2012/09/08
3:49 UTC
Read the original article
Hit count: 331
opengl
gDEbugger states that OpenGL's program objects only occupy an insignificant amount of memory. How much is this actually? I don't know if the stuff I looked up in mesa is actually that I was looking for but it requires 16KB [Edit: false, confusing struct names, less than 1KB immediate, some further behind pointers] per program object. Not quite insignificant.
So is it recommended to create a unique program object for each object of the scene? Or to share a single program object and set the scene's object's custom variables just before its draw call?
© Game Development or respective owner