OpenSubdiv/examples/glShareTopology
Takahito Tejima b66380ee52 Refactor Osd::DrawContext
Since unified shading work already removed subPatch info from
Osd::PatchDescriptor, the difference between Far::PatchDescriptor and
Osd::PatchDescriptor is just maxValence and numElements. They are used
for legacy gregory patch drawing.

Both maxValence and numElements are actually constant within a topology
(drawContext). This change move maxValence to DrawContext and let client
manage numElements, then we can eliminate Osd::PatchDescriptor and simply
use Far::PatchDescritor instead.

This is still an intermediate step toward further DrawRegistry refactoring.
For the time being, adding EffectDesc struct to include maxValence and
numValence to be maintained by the clients. They will be cleaned up later.

The side benefit of this change is we no longer need to recompile regular b-spline
shaders for the different max-valences.
2015-05-11 18:06:46 -07:00
..
CMakeLists.txt Landing 3.0.0.alpha 2014-09-05 15:07:46 -07:00
glShareTopology.cpp Refactor Osd::DrawContext 2015-05-11 18:06:46 -07:00
shader.glsl Landing 3.0.0.alpha 2014-09-05 15:07:46 -07:00