OpenSubdiv
|
Provides shader source which can be used by client code. More...
#include <mtlPatchShaderSource.h>
Static Public Member Functions | |
static std::string | GetPatchBasisShaderSource () |
Returns shader source which can be used to evaluate position and first and second derivatives on piecewise parametric patches resulting from subdivision refinement. | |
static std::string | GetPatchDrawingShaderSource () |
Returns shader source which can be used while drawing piecewise parametric patches resulting from subdivision refinement, e.g. while using GPU HW tessellation. | |
Alternative methods | |
These methods return shader source which can be used while drawing. Unlike the methods above, the source returned by these methods includes support for legacy patch types along with dependencies on specific resource bindings and interstage shader variable declarations. | |
static std::string | GetCommonShaderSource () |
static std::string | GetVertexShaderSource (Far::PatchDescriptor::Type type) |
static std::string | GetHullShaderSource (Far::PatchDescriptor::Type type) |
static std::string | GetDomainShaderSource (Far::PatchDescriptor::Type type) |
static std::string | GetVertexShaderSource (Far::PatchDescriptor::Type type, Far::PatchDescriptor::Type fvarType) |
Deprecated. | |
static std::string | GetHullShaderSource (Far::PatchDescriptor::Type type, Far::PatchDescriptor::Type fvarType) |
static std::string | GetDomainShaderSource (Far::PatchDescriptor::Type type, Far::PatchDescriptor::Type fvarType) |
Provides shader source which can be used by client code.
Definition at line 40 of file mtlPatchShaderSource.h.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Returns shader source which can be used to evaluate position and first and second derivatives on piecewise parametric patches resulting from subdivision refinement.
|
static |
Returns shader source which can be used while drawing piecewise parametric patches resulting from subdivision refinement, e.g. while using GPU HW tessellation.
|
static |
|
static |
Deprecated.
These methods are deprecated. Clients should determine the patch type of a face-varying patch by inspecting the face-varying patch array descriptors.