HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
shaderDefParser.h
Go to the documentation of this file.
1 //
2 // Copyright 2018 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_USD_USD_SHADE_SHADER_DEF_PARSER_H
8 #define PXR_USD_USD_SHADE_SHADER_DEF_PARSER_H
9 
10 #include "pxr/usd/usdShade/api.h"
11 
12 #include "pxr/usd/sdr/declare.h"
15 
17 
18 /// \class UsdShadeShaderDefParserPlugin
19 ///
20 /// Parses shader definitions represented using USD scene description using the
21 /// schemas provided by UsdShade.
22 ///
24 {
25 public:
28 
30  ~UsdShadeShaderDefParserPlugin() override = default;
31 
34  const SdrShaderNodeDiscoveryResult &discoveryResult) override;
35 
37  const SdrTokenVec &GetDiscoveryTypes() const override;
38 
40  const TfToken &GetSourceType() const override;
41 };
42 
44 
45 #endif // PXR_USD_USD_SHADE_SHADER_DEF_PARSER_H
#define USDSHADE_API
Definition: api.h:23
USDSHADE_API UsdShadeShaderDefParserPlugin()=default
USDSHADE_API SdrShaderNodeUniquePtr ParseShaderNode(const SdrShaderNodeDiscoveryResult &discoveryResult) override
USDSHADE_API const TfToken & GetSourceType() const override
USDSHADE_API const SdrTokenVec & GetDiscoveryTypes() const override
Definition: token.h:70
USDSHADE_API ~UsdShadeShaderDefParserPlugin() override=default
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
std::unique_ptr< SdrShaderNode > SdrShaderNodeUniquePtr
Definition: declare.h:52
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
std::vector< TfToken > SdrTokenVec
Definition: declare.h:45