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);
49class HdRenderVarSchema :
public HdSchema
55 HdRenderVarSchema(HdContainerDataSourceHandle container)
64 static HdRenderVarSchema GetFromParent(
65 const HdContainerDataSourceHandle &fromParentContainer);
76 HdPathDataSourceHandle GetPath()
const;
79 HdTokenDataSourceHandle GetDataType()
const;
82 HdTokenDataSourceHandle GetSourceName()
const;
85 HdTokenDataSourceHandle GetSourceType()
const;
88 HdContainerDataSourceHandle GetNamespacedSettings()
const;
98 static const TfToken &GetSchemaToken();
132 static HdContainerDataSourceHandle
134 const HdPathDataSourceHandle &path,
135 const HdTokenDataSourceHandle &dataType,
136 const HdTokenDataSourceHandle &sourceName,
137 const HdTokenDataSourceHandle &sourceType,
138 const HdContainerDataSourceHandle &namespacedSettings
152 const HdPathDataSourceHandle &path);
155 const HdTokenDataSourceHandle &dataType);
158 const HdTokenDataSourceHandle &sourceName);
161 const HdTokenDataSourceHandle &sourceType);
163 Builder &SetNamespacedSettings(
164 const HdContainerDataSourceHandle &namespacedSettings);
168 HdContainerDataSourceHandle
Build();
171 HdPathDataSourceHandle _path;
172 HdTokenDataSourceHandle _dataType;
173 HdTokenDataSourceHandle _sourceName;
174 HdTokenDataSourceHandle _sourceType;
175 HdContainerDataSourceHandle _namespacedSettings;
182PXR_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.