HDK
|
#include <shaderDefParser.h>
Public Member Functions | |
USDSHADE_API | UsdShadeShaderDefParserPlugin ()=default |
USDSHADE_API | ~UsdShadeShaderDefParserPlugin () override=default |
USDSHADE_API SdrShaderNodeUniquePtr | ParseShaderNode (const SdrShaderNodeDiscoveryResult &discoveryResult) override |
USDSHADE_API const SdrTokenVec & | GetDiscoveryTypes () const override |
USDSHADE_API const TfToken & | GetSourceType () const override |
![]() | |
SDR_API | SdrParserPlugin () |
virtual SDR_API | ~SdrParserPlugin () |
SDR_API NdrNodeUniquePtr | Parse (const NdrNodeDiscoveryResult &discoveryResult) override |
![]() | |
NDR_API | NdrParserPlugin () |
virtual NDR_API | ~NdrParserPlugin () |
![]() | |
TfWeakBase () | |
TfWeakBase (const TfWeakBase &) | |
const TfWeakBase & | __GetTfWeakBase__ () const |
const TfWeakBase & | operator= (const TfWeakBase &) |
void | EnableNotification2 () const |
TF_API void const * | GetUniqueIdentifier () const |
Additional Inherited Members | |
![]() | |
static SDR_API SdrShaderNodeUniquePtr | GetInvalidShaderNode (const SdrShaderNodeDiscoveryResult &dr) |
![]() | |
static NDR_API NdrNodeUniquePtr | GetInvalidNode (const NdrNodeDiscoveryResult &dr) |
![]() | |
~TfWeakBase () | |
TfRefPtr< Tf_Remnant > | _Register () const |
template<class T > | |
TfRefPtr< Tf_Remnant > | _Register (T *tempRmnt) const |
bool | _HasRemnant () const |
Parses shader definitions represented using USD scene description using the schemas provided by UsdShade.
Definition at line 23 of file shaderDefParser.h.
|
default |
|
overridedefault |
|
overridevirtual |
Returns the types of nodes that this plugin can parse.
"Type" here is the discovery type (in the case of files, this will probably be the file extension, but in other systems will be data that can be determined during discovery). This type should only be used to match up a NdrNodeDiscoveryResult
to its parser plugin; this value is not exposed in the node's API.
Implements NdrParserPlugin.
|
overridevirtual |
Returns the source type that this parser operates on.
A source type is the most general type for a node. The parser plugin is responsible for parsing all discovery results that have the types declared under GetDiscoveryTypes()
, and those types are collectively identified as one "source type".
Implements NdrParserPlugin.
|
overridevirtual |
Takes the specified SdrShaderNodeDiscoveryResult
instance, which was a result of the discovery process, and generates a new SdrShaderNode
. The node's name, source type, and family must match.
Implements SdrParserPlugin.