18#ifndef PXR_IMAGING_HD_RENDER_SETTING_DESCRIPTOR_SCHEMA_H
19#define PXR_IMAGING_HD_RENDER_SETTING_DESCRIPTOR_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
25#include "pxr/imaging/hd/schema.h"
30PXR_NAMESPACE_OPEN_SCOPE
35#define HD_RENDER_SETTING_DESCRIPTOR_SCHEMA_TOKENS \
36 (renderSettingDescriptor) \
41 HD_RENDER_SETTING_DESCRIPTOR_SCHEMA_TOKENS);
68 const HdContainerDataSourceHandle &fromParentContainer);
84 HdSampledDataSourceHandle GetDefaultValue()
const;
109 static HdContainerDataSourceHandle
111 const HdStringDataSourceHandle &name,
112 const HdSampledDataSourceHandle &defaultValue
126 const HdStringDataSourceHandle &name);
129 const HdSampledDataSourceHandle &defaultValue);
133 HdContainerDataSourceHandle
Build();
136 HdStringDataSourceHandle _name;
137 HdSampledDataSourceHandle _defaultValue;
144PXR_NAMESPACE_CLOSE_SCOPE
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.
Describes render setting advertised by a renderer through HdRendererPlugin::GetSceneIndexCreateArgs,...
static HD_API HdRenderSettingDescriptorSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "renderSettingDescriptor" from...
HD_API HdStringDataSourceHandle GetName() const
Human-readable name of the render setting, suitable for display in a UI.
static HD_API HdContainerDataSourceHandle BuildRetained(const HdStringDataSourceHandle &name, const HdSampledDataSourceHandle &defaultValue)
static HD_API const TfToken & GetSchemaToken()
Returns a token where the container representing this schema is found in a container by default.
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.