Blocks :
|
|
Blocks :
|
|
Blocks :
|
The idea of a super shader is to be able to render images (cached regions) and text using the same shader program. Since controls are usually made up of regions (cached) and text, the super shader can be used to draw severals controls with one single draw call (as there is no need to change graphics state anymore). Another good application of the super shader is to render table views, where it can render all its cell with a single draw call (which is a huge improvement compare to the current implementation where for each cell the graphics states has to be set to render the background and set again to render the text content). The super shader depends on: - Super texture (all regions need to be cached to the same texture) - Text support on NGRegion (not mandatory, the super shader could be used by NGText too)
|