35#ifndef PXR_IMAGING_HD_RENDER_VAR_SCHEMA_H
36#define PXR_IMAGING_HD_RENDER_VAR_SCHEMA_H
40#include "pxr/imaging/hd/api.h"
42#include "pxr/imaging/hd/schema.h"
47PXR_NAMESPACE_OPEN_SCOPE
52#define HD_RENDER_VAR_SCHEMA_TOKENS \
58 (namespacedSettings) \
61 HD_RENDER_VAR_SCHEMA_TOKENS);
66class HdRenderVarSchema :
public HdSchema
72 HdRenderVarSchema(HdContainerDataSourceHandle container)
81 static HdRenderVarSchema GetFromParent(
82 const HdContainerDataSourceHandle &fromParentContainer);
93 HdPathDataSourceHandle GetPath()
const;
96 HdTokenDataSourceHandle GetDataType()
const;
99 HdTokenDataSourceHandle GetSourceName()
const;
102 HdTokenDataSourceHandle GetSourceType()
const;
105 HdContainerDataSourceHandle GetNamespacedSettings()
const;
115 static const TfToken &GetSchemaToken();
149 static HdContainerDataSourceHandle
151 const HdPathDataSourceHandle &path,
152 const HdTokenDataSourceHandle &dataType,
153 const HdTokenDataSourceHandle &sourceName,
154 const HdTokenDataSourceHandle &sourceType,
155 const HdContainerDataSourceHandle &namespacedSettings
169 const HdPathDataSourceHandle &path);
172 const HdTokenDataSourceHandle &dataType);
175 const HdTokenDataSourceHandle &sourceName);
178 const HdTokenDataSourceHandle &sourceType);
180 Builder &SetNamespacedSettings(
181 const HdContainerDataSourceHandle &namespacedSettings);
185 HdContainerDataSourceHandle
Build();
188 HdPathDataSourceHandle _path;
189 HdTokenDataSourceHandle _dataType;
190 HdTokenDataSourceHandle _sourceName;
191 HdTokenDataSourceHandle _sourceType;
192 HdContainerDataSourceHandle _namespacedSettings;
199PXR_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.