18#ifndef PXR_IMAGING_HD_SCENE_INDEX_CREATE_ARGS_SCHEMA_H
19#define PXR_IMAGING_HD_SCENE_INDEX_CREATE_ARGS_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
24#include "pxr/imaging/hd/schemaTypeDefs.h"
26#include "pxr/imaging/hd/schema.h"
32PXR_NAMESPACE_OPEN_SCOPE
35struct HdRenderDelegateInfo;
37using HdRenderDelegateInfoDataSourceHandle = HdRenderDelegateInfoDataSource::Handle;
40#define HD_SCENE_INDEX_CREATE_ARGS_SCHEMA_TOKENS \
42 (cameraMotionBlurSupport) \
43 (legacyRenderDelegateInfo) \
44 (renderSettingDescriptors) \
45 (excludedPurposesHint) \
48 HD_SCENE_INDEX_CREATE_ARGS_SCHEMA_TOKENS);
131 static HdContainerDataSourceHandle
133 const HdBoolDataSourceHandle &motionBlurSupport,
134 const HdBoolDataSourceHandle &cameraMotionBlurSupport,
135 const HdRenderDelegateInfoDataSourceHandle &legacyRenderDelegateInfo,
136 const HdContainerDataSourceHandle &renderSettingDescriptors,
137 const HdTokenArrayDataSourceHandle &excludedPurposesHint
151 const HdBoolDataSourceHandle &motionBlurSupport);
153 Builder &SetCameraMotionBlurSupport(
154 const HdBoolDataSourceHandle &cameraMotionBlurSupport);
156 Builder &SetLegacyRenderDelegateInfo(
157 const HdRenderDelegateInfoDataSourceHandle &legacyRenderDelegateInfo);
159 Builder &SetRenderSettingDescriptors(
160 const HdContainerDataSourceHandle &renderSettingDescriptors);
162 Builder &SetExcludedPurposesHint(
163 const HdTokenArrayDataSourceHandle &excludedPurposesHint);
167 HdContainerDataSourceHandle
Build();
170 HdBoolDataSourceHandle _motionBlurSupport;
171 HdBoolDataSourceHandle _cameraMotionBlurSupport;
172 HdRenderDelegateInfoDataSourceHandle _legacyRenderDelegateInfo;
173 HdContainerDataSourceHandle _renderSettingDescriptors;
174 HdTokenArrayDataSourceHandle _excludedPurposesHint;
181PXR_NAMESPACE_CLOSE_SCOPE
Template class for a schema backed by a container whose children have arbitrary names but an expected...
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 for the container data source returned by HdRendererPlugin::GetSceneIndexCreateArgs.
static HD_API HdContainerDataSourceHandle BuildRetained(const HdBoolDataSourceHandle &motionBlurSupport, const HdBoolDataSourceHandle &cameraMotionBlurSupport, const HdRenderDelegateInfoDataSourceHandle &legacyRenderDelegateInfo, const HdContainerDataSourceHandle &renderSettingDescriptors, const HdTokenArrayDataSourceHandle &excludedPurposesHint)
HD_API HdRenderSettingDescriptorContainerSchema GetRenderSettingDescriptors() const
Render settings advertised by rendererer.
HD_API HdRenderDelegateInfoDataSourceHandle GetLegacyRenderDelegateInfo() const
Used for HdRenderIndexAdapterSceneIndex.
HD_API HdBoolDataSourceHandle GetMotionBlurSupport() const
Does consumer (most likely HdRenderer) of scene indices need samples for motion blur?...
HD_API HdBoolDataSourceHandle GetCameraMotionBlurSupport() const
Does consumer (most likely HdRenderer) of scene indices need samples for motion blur for cameras?...
HD_API HdTokenArrayDataSourceHandle GetExcludedPurposesHint() const
Hint listing prim purposes (e.g.
Schema classes represent a structured view of the inherently unstructured container data source passe...
A datasource representing a concretely-typed sampled value.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.