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) \
47 HD_SCENE_INDEX_CREATE_ARGS_SCHEMA_TOKENS);
124 static HdContainerDataSourceHandle
126 const HdBoolDataSourceHandle &motionBlurSupport,
127 const HdBoolDataSourceHandle &cameraMotionBlurSupport,
128 const HdRenderDelegateInfoDataSourceHandle &legacyRenderDelegateInfo,
129 const HdContainerDataSourceHandle &renderSettingDescriptors
143 const HdBoolDataSourceHandle &motionBlurSupport);
145 Builder &SetCameraMotionBlurSupport(
146 const HdBoolDataSourceHandle &cameraMotionBlurSupport);
148 Builder &SetLegacyRenderDelegateInfo(
149 const HdRenderDelegateInfoDataSourceHandle &legacyRenderDelegateInfo);
151 Builder &SetRenderSettingDescriptors(
152 const HdContainerDataSourceHandle &renderSettingDescriptors);
156 HdContainerDataSourceHandle
Build();
159 HdBoolDataSourceHandle _motionBlurSupport;
160 HdBoolDataSourceHandle _cameraMotionBlurSupport;
161 HdRenderDelegateInfoDataSourceHandle _legacyRenderDelegateInfo;
162 HdContainerDataSourceHandle _renderSettingDescriptors;
169PXR_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.
HD_API HdRenderSettingDescriptorContainerSchema GetRenderSettingDescriptors() const
Render settings advertised by rendererer.
HD_API HdRenderDelegateInfoDataSourceHandle GetLegacyRenderDelegateInfo() const
Used for HdRenderIndexAdapterSceneIndex.
static HD_API HdContainerDataSourceHandle BuildRetained(const HdBoolDataSourceHandle &motionBlurSupport, const HdBoolDataSourceHandle &cameraMotionBlurSupport, const HdRenderDelegateInfoDataSourceHandle &legacyRenderDelegateInfo, const HdContainerDataSourceHandle &renderSettingDescriptors)
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?...
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.