mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-03 16:31:04 +00:00
b66380ee52
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. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
glShareTopology.cpp | ||
shader.glsl |