31 #ifndef PXR_IMAGING_HD_SCENE_GLOBALS_SCHEMA_H 32 #define PXR_IMAGING_HD_SCENE_GLOBALS_SCHEMA_H 34 #include "pxr/imaging/hd/api.h" 36 #include "pxr/imaging/hd/schema.h" 38 PXR_NAMESPACE_OPEN_SCOPE
42 #define HDSCENEGLOBALS_SCHEMA_TOKENS \ 44 (activeRenderSettingsPrim) \ 47 HDSCENEGLOBALS_SCHEMA_TOKENS);
71 HdPathDataSourceHandle GetActiveRenderSettingsPrim();
81 static HdContainerDataSourceHandle
83 const HdPathDataSourceHandle &activeRenderSettingsPrim
96 Builder &SetActiveRenderSettingsPrim(
97 const HdPathDataSourceHandle &activeRenderSettingsPrim);
101 HdContainerDataSourceHandle
Build();
104 HdPathDataSourceHandle _activeRenderSettingsPrim;
114 const HdContainerDataSourceHandle &fromParentContainer);
131 PXR_NAMESPACE_CLOSE_SCOPE
The HdSceneGlobalsSchema encapsulates "global" state to orchestrate a render.
static HD_API HdSceneGlobalsSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "sceneGlobals" from the parent...
static HD_API const HdDataSourceLocator & GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container represent...
Represents an object that can identify the location of a data source.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
static HD_API const HdDataSourceLocator & GetActiveRenderSettingsPrimLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the activerendersetting...
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.
static HD_API HdContainerDataSourceHandle BuildRetained(const HdPathDataSourceHandle &activeRenderSettingsPrim)
Builds a container data source which includes the provided child data sources.