31 #ifndef PXR_IMAGING_HD_RENDER_VAR_SCHEMA_H 32 #define PXR_IMAGING_HD_RENDER_VAR_SCHEMA_H 34 #include "pxr/imaging/hd/api.h" 36 #include "pxr/imaging/hd/schema.h" 38 PXR_NAMESPACE_OPEN_SCOPE
42 #define HDRENDERVAR_SCHEMA_TOKENS \ 48 (namespacedSettings) \ 51 HDRENDERVAR_SCHEMA_TOKENS);
55 class HdRenderVarSchema :
public HdSchema 58 HdRenderVarSchema(HdContainerDataSourceHandle container)
64 HdPathDataSourceHandle GetPath();
66 HdTokenDataSourceHandle GetDataType();
68 HdTokenDataSourceHandle GetSourceName();
70 HdTokenDataSourceHandle GetSourceType();
72 HdContainerDataSourceHandle GetNamespacedSettings();
82 static HdContainerDataSourceHandle
84 const HdPathDataSourceHandle &path,
85 const HdTokenDataSourceHandle &dataType,
86 const HdTokenDataSourceHandle &sourceName,
87 const HdTokenDataSourceHandle &sourceType,
88 const HdContainerDataSourceHandle &namespacedSettings
102 const HdPathDataSourceHandle &path);
105 const HdTokenDataSourceHandle &dataType);
108 const HdTokenDataSourceHandle &sourceName);
111 const HdTokenDataSourceHandle &sourceType);
113 Builder &SetNamespacedSettings(
114 const HdContainerDataSourceHandle &namespacedSettings);
118 HdContainerDataSourceHandle
Build();
121 HdPathDataSourceHandle _path;
122 HdTokenDataSourceHandle _dataType;
123 HdTokenDataSourceHandle _sourceName;
124 HdTokenDataSourceHandle _sourceType;
125 HdContainerDataSourceHandle _namespacedSettings;
134 static HdRenderVarSchema GetFromParent(
135 const HdContainerDataSourceHandle &fromParentContainer);
152 PXR_NAMESPACE_CLOSE_SCOPE
Represents an object that can identify the location of a data source.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
Schema classes represent a structured view of the inherently unstructured container data source passe...
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.