HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
validatorTokens.h
Go to the documentation of this file.
1 //
2 // Copyright 2024 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 
8 #ifndef PXR_USD_VALIDATION_USD_SHADE_VALIDATOR_TOKENS_H
9 #define PXR_USD_VALIDATION_USD_SHADE_VALIDATOR_TOKENS_H
10 
11 /// \file
12 
13 #include "pxr/pxr.h"
16 
18 
19 #define USD_SHADE_VALIDATOR_NAME_TOKENS \
20  ((encapsulationValidator, \
21  "usdShadeValidators:EncapsulationRulesValidator")) \
22  ((materialBindingApiAppliedValidator, \
23  "usdShadeValidators:MaterialBindingApiAppliedValidator")) \
24  ((materialBindingRelationships, \
25  "usdShadeValidators:MaterialBindingRelationships")) \
26  ((materialBindingCollectionValidator, \
27  "usdShadeValidators:MaterialBindingCollectionValidator")) \
28  ((normalMapTextureValidator, \
29  "usdShadeValidators:NormalMapTextureValidator")) \
30  ((shaderSdrCompliance, "usdShadeValidators:ShaderSdrCompliance")) \
31  ((subsetMaterialBindFamilyName, \
32  "usdShadeValidators:SubsetMaterialBindFamilyName")) \
33  ((subsetsMaterialBindFamily, \
34  "usdShadeValidators:SubsetsMaterialBindFamily"))
35 
36 #define USD_SHADE_VALIDATOR_KEYWORD_TOKENS (UsdShadeValidators)
37 
38 #define USD_SHADE_VALIDATION_ERROR_NAME_TOKENS \
39  ((connectableInNonContainer, "ConnectableInNonContainer")) \
40  ((invalidConnectableHierarchy, "InvalidConnectableHierarchy")) \
41  ((missingMaterialBindingAPI, "MissingMaterialBindingAPI")) \
42  ((materialBindingPropNotARel, "MaterialBindingPropNotARel")) \
43  ((invalidMaterialCollection, "InvalidMaterialCollection")) \
44  ((invalidResourcePath, "InvalidResourcePath")) \
45  ((invalidImplSource, "InvalidImplementationSrc")) \
46  ((missingSourceType, "MissingSourceType")) \
47  ((missingShaderIdInRegistry, "MissingShaderIdInRegistry")) \
48  ((missingSourceTypeInRegistry, "MissingSourceTypeInRegistry")) \
49  ((incompatShaderPropertyWarning, "IncompatShaderPropertyWarning")) \
50  ((mismatchPropertyType, "MismatchedPropertyType")) \
51  ((missingFamilyNameOnGeomSubset, "MissingFamilyNameOnGeomSubset")) \
52  ((nonShaderConnection, "NonShaderConnection")) \
53  ((invalidFile, "InvalidFile")) \
54  ((invalidShaderPrim, "InvalidShaderPrim")) \
55  ((invalidSourceColorSpace, "InvalidSourceColorSpace")) \
56  ((nonCompliantBiasAndScale, "NonCompliantBiasAndScale")) \
57  ((nonCompliantScale, "NonCompliantScaleValues")) \
58  ((nonCompliantBias, "NonCompliantBiasValues")) \
59  ((invalidFamilyType, "InvalidFamilyType"))
60 
61 /// \def USD_SHADE_VALIDATOR_NAME_TOKENS
62 /// Tokens representing validator names. Note that for plugin provided
63 /// validators, the names must be prefixed by usdShadeValidators:, which is the
64 /// name of the usdShadeValidators plugin.
65 TF_DECLARE_PUBLIC_TOKENS(UsdShadeValidatorNameTokens, USDSHADEVALIDATORS_API,
67 
68 /// \def USD_SHADE_VALIDATOR_KEYWORD_TOKENS
69 /// Tokens representing keywords associated with any validator in the usdShade
70 /// plugin. Cliends can use this to inspect validators contained within a
71 /// specific keywords, or use these to be added as keywords to any new
72 /// validator.
73 TF_DECLARE_PUBLIC_TOKENS(UsdShadeValidatorKeywordTokens, USDSHADEVALIDATORS_API,
75 
76 /// \def USD_SHADE_VALIDATION_ERROR_NAME_TOKENS
77 /// Tokens representing validation error identifier.
78 TF_DECLARE_PUBLIC_TOKENS(UsdShadeValidationErrorNameTokens,
81 
83 
84 #endif
TF_DECLARE_PUBLIC_TOKENS(UsdGeomValidatorNameTokens, USDGEOMVALIDATORS_API, USD_GEOM_VALIDATOR_NAME_TOKENS)
#define USD_SHADE_VALIDATOR_KEYWORD_TOKENS
#define USDSHADEVALIDATORS_API
Definition: api.h:25
#define USD_SHADE_VALIDATION_ERROR_NAME_TOKENS
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
#define USD_SHADE_VALIDATOR_NAME_TOKENS