OpenSubdiv/examples/dxViewer
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 A couple more DX / OpenCL changes for AMD 2015-04-30 10:01:01 -07:00
dxviewer.cpp Refactor Osd::DrawContext 2015-05-11 18:06:46 -07:00
init_shapes.h Added catmark_gregory_test{6,7} to a few examples. 2014-10-24 11:07:24 -07:00
shader.hlsl Landing 3.0.0.alpha 2014-09-05 15:07:46 -07:00