18#ifndef PXR_IMAGING_HD_RENDER_SETTINGS_SCHEMA_H
19#define PXR_IMAGING_HD_RENDER_SETTINGS_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
24#include "pxr/imaging/hd/schemaTypeDefs.h"
26#include "pxr/imaging/hd/schema.h"
34PXR_NAMESPACE_OPEN_SCOPE
39#define HD_RENDER_SETTINGS_SCHEMA_TOKENS \
41 (namespacedSettings) \
45 (disableDepthOfField) \
48 (materialBindingPurposes) \
49 (renderingColorSpace) \
50 (unionedSamplingInterval) \
51 (useForLegacyRenderDelegateSettings) \
54 HD_RENDER_SETTINGS_SCHEMA_TOKENS);
61class HdRenderSettingsSchema :
public HdSchema
67 HdRenderSettingsSchema(HdContainerDataSourceHandle container)
76 static HdRenderSettingsSchema GetFromParent(
77 const HdContainerDataSourceHandle &fromParentContainer);
97 HdBoolDataSourceHandle GetActive()
const;
100 HdPathDataSourceHandle GetCamera()
const;
103 HdBoolDataSourceHandle GetDisableMotionBlur()
const;
106 HdBoolDataSourceHandle GetDisableDepthOfField()
const;
112 HdTokenArrayDataSourceHandle GetIncludedPurposes()
const;
115 HdTokenArrayDataSourceHandle GetMaterialBindingPurposes()
const;
118 HdTokenDataSourceHandle GetRenderingColorSpace()
const;
128 HdVec2dDataSourceHandle GetUnionedSamplingInterval()
const;
144 HdBoolDataSourceHandle GetUseForLegacyRenderDelegateSettings()
const;
154 static const TfToken &GetSchemaToken();
228 static HdContainerDataSourceHandle
230 const HdContainerDataSourceHandle &namespacedSettings,
231 const HdBoolDataSourceHandle &active,
232 const HdPathDataSourceHandle &camera,
233 const HdBoolDataSourceHandle &disableMotionBlur,
234 const HdBoolDataSourceHandle &disableDepthOfField,
235 const HdVectorDataSourceHandle &renderProducts,
236 const HdTokenArrayDataSourceHandle &includedPurposes,
237 const HdTokenArrayDataSourceHandle &materialBindingPurposes,
238 const HdTokenDataSourceHandle &renderingColorSpace,
239 const HdVec2dDataSourceHandle &unionedSamplingInterval,
240 const HdBoolDataSourceHandle &useForLegacyRenderDelegateSettings
253 Builder &SetNamespacedSettings(
254 const HdContainerDataSourceHandle &namespacedSettings);
257 const HdBoolDataSourceHandle &active);
260 const HdPathDataSourceHandle &camera);
262 Builder &SetDisableMotionBlur(
263 const HdBoolDataSourceHandle &disableMotionBlur);
265 Builder &SetDisableDepthOfField(
266 const HdBoolDataSourceHandle &disableDepthOfField);
268 Builder &SetRenderProducts(
269 const HdVectorDataSourceHandle &renderProducts);
271 Builder &SetIncludedPurposes(
272 const HdTokenArrayDataSourceHandle &includedPurposes);
274 Builder &SetMaterialBindingPurposes(
275 const HdTokenArrayDataSourceHandle &materialBindingPurposes);
277 Builder &SetRenderingColorSpace(
278 const HdTokenDataSourceHandle &renderingColorSpace);
280 Builder &SetUnionedSamplingInterval(
281 const HdVec2dDataSourceHandle &unionedSamplingInterval);
283 Builder &SetUseForLegacyRenderDelegateSettings(
284 const HdBoolDataSourceHandle &useForLegacyRenderDelegateSettings);
288 HdContainerDataSourceHandle
Build();
291 HdContainerDataSourceHandle _namespacedSettings;
292 HdBoolDataSourceHandle _active;
293 HdPathDataSourceHandle _camera;
294 HdBoolDataSourceHandle _disableMotionBlur;
295 HdBoolDataSourceHandle _disableDepthOfField;
296 HdVectorDataSourceHandle _renderProducts;
297 HdTokenArrayDataSourceHandle _includedPurposes;
298 HdTokenArrayDataSourceHandle _materialBindingPurposes;
299 HdTokenDataSourceHandle _renderingColorSpace;
300 HdVec2dDataSourceHandle _unionedSamplingInterval;
301 HdBoolDataSourceHandle _useForLegacyRenderDelegateSettings;
308PXR_NAMESPACE_CLOSE_SCOPE
Template class for a schema backed by a container whose children have arbitrary names but an expected...
Represents an object that can identify the location of a data source.
HD_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...
Template class wrapping a vector data source whose children are container data source conforming to a...
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.