Loading...
Searching...
No Matches
sceneIndexInputArgsSchema.h
Go to the documentation of this file.
1//
2// Copyright 2023 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
8
9/* ************************************************************************** */
10/* ** ** */
11/* ** This file is generated by a script. ** */
12/* ** ** */
13/* ** Do not edit it directly (unless it is within a CUSTOM CODE section)! ** */
14/* ** Edit hdSchemaDefs.py instead to make changes. ** */
15/* ** ** */
16/* ************************************************************************** */
17
18#ifndef PXR_IMAGING_HD_SCENE_INDEX_INPUT_ARGS_SCHEMA_H
19#define PXR_IMAGING_HD_SCENE_INDEX_INPUT_ARGS_SCHEMA_H
20
22
23#include "pxr/imaging/hd/api.h"
24
25#include "pxr/imaging/hd/schema.h"
26
27// --(BEGIN CUSTOM CODE: Includes)--
28// #include "pxr/imaging/hd/renderDelegateInfo.h"
29// --(END CUSTOM CODE: Includes)--
30
31PXR_NAMESPACE_OPEN_SCOPE
32
33// --(BEGIN CUSTOM CODE: Declares)--
34struct HdRenderDelegateInfo;
36using HdRenderDelegateInfoDataSourceHandle = HdRenderDelegateInfoDataSource::Handle;
37// --(END CUSTOM CODE: Declares)--
38
39#define HD_SCENE_INDEX_INPUT_ARGS_SCHEMA_TOKENS \
40 (motionBlurSupport) \
41 (cameraMotionBlurSupport) \
42 (legacyRenderDelegateInfo) \
43
44TF_DECLARE_PUBLIC_TOKENS(HdSceneIndexInputArgsSchemaTokens, HD_API,
45 HD_SCENE_INDEX_INPUT_ARGS_SCHEMA_TOKENS);
46
47//-----------------------------------------------------------------------------
48
49
67{
68public:
71
72 HdSceneIndexInputArgsSchema(HdContainerDataSourceHandle container)
73 : HdSchema(container) {}
74
76
77// --(BEGIN CUSTOM CODE: Schema Methods)--
78// --(END CUSTOM CODE: Schema Methods)--
79
82
87 HD_API
88 HdBoolDataSourceHandle GetMotionBlurSupport() const;
89
94 HD_API
95 HdBoolDataSourceHandle GetCameraMotionBlurSupport() const;
96
102 HD_API
103 HdRenderDelegateInfoDataSourceHandle GetLegacyRenderDelegateInfo() const;
104
106
109
117 HD_API
118 static HdContainerDataSourceHandle
120 const HdBoolDataSourceHandle &motionBlurSupport,
121 const HdBoolDataSourceHandle &cameraMotionBlurSupport,
122 const HdRenderDelegateInfoDataSourceHandle &legacyRenderDelegateInfo
123 );
124
132 {
133 public:
134 HD_API
135 Builder &SetMotionBlurSupport(
136 const HdBoolDataSourceHandle &motionBlurSupport);
137 HD_API
138 Builder &SetCameraMotionBlurSupport(
139 const HdBoolDataSourceHandle &cameraMotionBlurSupport);
140 HD_API
141 Builder &SetLegacyRenderDelegateInfo(
142 const HdRenderDelegateInfoDataSourceHandle &legacyRenderDelegateInfo);
143
145 HD_API
146 HdContainerDataSourceHandle Build();
147
148 private:
149 HdBoolDataSourceHandle _motionBlurSupport;
150 HdBoolDataSourceHandle _cameraMotionBlurSupport;
151 HdRenderDelegateInfoDataSourceHandle _legacyRenderDelegateInfo;
152
153 };
154
156};
157
158PXR_NAMESPACE_CLOSE_SCOPE
159
160#endif
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::GetSceneIndexInputArgs.
static HD_API HdContainerDataSourceHandle BuildRetained(const HdBoolDataSourceHandle &motionBlurSupport, const HdBoolDataSourceHandle &cameraMotionBlurSupport, const HdRenderDelegateInfoDataSourceHandle &legacyRenderDelegateInfo)
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?...
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:26
A datasource representing a concretely-typed sampled value.
Definition: dataSource.h:193
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92