GNOME Bugzilla – Bug 657347
Retrieve the number of texture image units
Last modified: 2011-09-05 19:53:39 UTC
It's always interesting to know how many samplers you can use in your shaders and Cogl should expose that information. Let's start with how many samples you can use in your fragment programs.
Created attachment 194718 [details] [review] pipeline: Remove unsused get_max_texture_image_units() This function was not used in the opengl pipeline, probably because of the more precise get_max_activable_texture_units(). Remove it then.
Created attachment 194719 [details] [review] context: Add an accessor to get display associated with the context
Created attachment 194720 [details] [review] display: Add an accessor to get the renderer out of a display
Created attachment 194721 [details] [review] renderer: Add cogl_renderer_get_n_fragment_texture_units() Add a method on the renderer to know how many texture image units are accessible from fragment shaders.
thanks, these patches all looked good to me and they have all landed in master now and are available in the latest cogl-1.7.8 snapshot