Loading...
Searching...
No Matches
rileyRenderTargetSchema.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 EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RILEY_RENDER_TARGET_SCHEMA_H
19#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RILEY_RENDER_TARGET_SCHEMA_H
20
22
23#include "hdPrman/api.h"
25
26#include "pxr/imaging/hd/schema.h"
27#include "pxr/imaging/hd/version.h"
28
29// --(BEGIN CUSTOM CODE: Includes)--
30// --(END CUSTOM CODE: Includes)--
31
32PXR_NAMESPACE_OPEN_SCOPE
33
34// --(BEGIN CUSTOM CODE: Declares)--
35// --(END CUSTOM CODE: Declares)--
36
37#define HD_PRMAN_RILEY_RENDER_TARGET_SCHEMA_TOKENS \
38 (rileyRenderTarget) \
39 (renderOutputs) \
40 (extent) \
41 (filterMode) \
42 (pixelVariance) \
43 (params) \
44 (importance) \
45 (weighted) \
46
47TF_DECLARE_PUBLIC_TOKENS(HdPrmanRileyRenderTargetSchemaTokens, HDPRMAN_API,
48 HD_PRMAN_RILEY_RENDER_TARGET_SCHEMA_TOKENS);
49
50//-----------------------------------------------------------------------------
51
52
53class HdPrmanRileyRenderTargetSchema : public HdSchema
54{
55public:
58
59 HdPrmanRileyRenderTargetSchema(HdContainerDataSourceHandle container)
60 : HdSchema(container) {}
61
67 HDPRMAN_API
68 static HdPrmanRileyRenderTargetSchema GetFromParent(
69 const HdContainerDataSourceHandle &fromParentContainer);
70
72
73// --(BEGIN CUSTOM CODE: Schema Methods)--
74// --(END CUSTOM CODE: Schema Methods)--
75
78
79 HDPRMAN_API
80 HdPathArrayDataSourceHandle GetRenderOutputs()
81#if HD_API_VERSION >= 66
82 const;
83#else
84 ;
85#endif
86
87
88 HDPRMAN_API
89 HdVec3iDataSourceHandle GetExtent()
90#if HD_API_VERSION >= 66
91 const;
92#else
93 ;
94#endif
95
96
97 HDPRMAN_API
98 HdTokenDataSourceHandle GetFilterMode()
99#if HD_API_VERSION >= 66
100 const;
101#else
102 ;
103#endif
104
105
106 HDPRMAN_API
107 HdFloatDataSourceHandle GetPixelVariance()
108#if HD_API_VERSION >= 66
109 const;
110#else
111 ;
112#endif
113
114
115 HDPRMAN_API
117#if HD_API_VERSION >= 66
118 const;
119#else
120 ;
121#endif
122
123
125
128
131 HDPRMAN_API
132 static const TfToken &GetSchemaToken();
133
136 HDPRMAN_API
137 static const HdDataSourceLocator &GetDefaultLocator();
138
140
149
151 HDPRMAN_API
152 static const HdDataSourceLocator &GetRenderOutputsLocator();
153
155 HDPRMAN_API
156 static const HdDataSourceLocator &GetExtentLocator();
157
159 HDPRMAN_API
160 static const HdDataSourceLocator &GetFilterModeLocator();
161
163 HDPRMAN_API
164 static const HdDataSourceLocator &GetPixelVarianceLocator();
165
167 HDPRMAN_API
168 static const HdDataSourceLocator &GetParamsLocator();
170
173
181 HDPRMAN_API
182 static HdContainerDataSourceHandle
183 BuildRetained(
184 const HdPathArrayDataSourceHandle &renderOutputs,
185 const HdVec3iDataSourceHandle &extent,
186 const HdTokenDataSourceHandle &filterMode,
187 const HdFloatDataSourceHandle &pixelVariance,
188 const HdContainerDataSourceHandle &params
189 );
190
198 {
199 public:
200 HDPRMAN_API
201 Builder &SetRenderOutputs(
202 const HdPathArrayDataSourceHandle &renderOutputs);
203 HDPRMAN_API
204 Builder &SetExtent(
205 const HdVec3iDataSourceHandle &extent);
206 HDPRMAN_API
207 Builder &SetFilterMode(
208 const HdTokenDataSourceHandle &filterMode);
209 HDPRMAN_API
210 Builder &SetPixelVariance(
211 const HdFloatDataSourceHandle &pixelVariance);
212 HDPRMAN_API
213 Builder &SetParams(
214 const HdContainerDataSourceHandle &params);
215
217 HDPRMAN_API
218 HdContainerDataSourceHandle Build();
219
220 private:
221 HdPathArrayDataSourceHandle _renderOutputs;
222 HdVec3iDataSourceHandle _extent;
223 HdTokenDataSourceHandle _filterMode;
224 HdFloatDataSourceHandle _pixelVariance;
225 HdContainerDataSourceHandle _params;
226
227 };
228
235 HDPRMAN_API
236 static HdTokenDataSourceHandle BuildFilterModeDataSource(
237 const TfToken &filterMode);
238
240};
241
242PXR_NAMESPACE_CLOSE_SCOPE
243
244#endif
Represents an object that can identify the location of a data source.
Schema to describe RtParamList.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
HDPRMAN_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:26
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92