18#ifndef PXR_IMAGING_HD_RENDER_VAR_SCHEMA_H
19#define PXR_IMAGING_HD_RENDER_VAR_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
25#include "pxr/imaging/hd/schema.h"
30PXR_NAMESPACE_OPEN_SCOPE
35#define HD_RENDER_VAR_SCHEMA_TOKENS \
41 (namespacedSettings) \
44 HD_RENDER_VAR_SCHEMA_TOKENS);
51class HdRenderVarSchema :
public HdSchema
57 HdRenderVarSchema(HdContainerDataSourceHandle container)
66 static HdRenderVarSchema GetFromParent(
67 const HdContainerDataSourceHandle &fromParentContainer);
78 HdPathDataSourceHandle GetPath()
const;
81 HdTokenDataSourceHandle GetDataType()
const;
84 HdTokenDataSourceHandle GetSourceName()
const;
87 HdTokenDataSourceHandle GetSourceType()
const;
90 HdContainerDataSourceHandle GetNamespacedSettings()
const;
100 static const TfToken &GetSchemaToken();
134 static HdContainerDataSourceHandle
136 const HdPathDataSourceHandle &path,
137 const HdTokenDataSourceHandle &dataType,
138 const HdTokenDataSourceHandle &sourceName,
139 const HdTokenDataSourceHandle &sourceType,
140 const HdContainerDataSourceHandle &namespacedSettings
154 const HdPathDataSourceHandle &path);
157 const HdTokenDataSourceHandle &dataType);
160 const HdTokenDataSourceHandle &sourceName);
163 const HdTokenDataSourceHandle &sourceType);
165 Builder &SetNamespacedSettings(
166 const HdContainerDataSourceHandle &namespacedSettings);
170 HdContainerDataSourceHandle
Build();
173 HdPathDataSourceHandle _path;
174 HdTokenDataSourceHandle _dataType;
175 HdTokenDataSourceHandle _sourceName;
176 HdTokenDataSourceHandle _sourceType;
177 HdContainerDataSourceHandle _namespacedSettings;
184PXR_NAMESPACE_CLOSE_SCOPE
Represents an object that can identify the location of a data source.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.