material: Support sparse ARBfp program generation
authorRobert Bragg <robert@linux.intel.com>
Thu, 10 Jun 2010 18:03:57 +0000 (19:03 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 15 Jun 2010 14:26:28 +0000 (15:26 +0100)
commit305721d0e8f2c2bad83787740628b2444f895a6f
tree16374300f7330e833897ac58c72e9ebf11dc9b77
parent2fe58f5000fc36ed8c37481f85ab1ec975ed0a9a
material: Support sparse ARBfp program generation

We don't need to generate a new ARBfp program for every material created
if we can find an ancestor whos state will result in the same program
being generated.

The more code we can have adopt the coding pattern of deriving their
materials from other similar materials using cogl_material_copy() the
more likely this metric will be good enough on its own to minimize the
set of arbfp programs necessary to support a given application.
clutter/cogl/cogl/cogl-material-private.h
clutter/cogl/cogl/cogl-material.c