24 #ifndef PXR_IMAGING_HD_RENDER_SETTINGS_H 25 #define PXR_IMAGING_HD_RENDER_SETTINGS_H 28 #include "pxr/imaging/hd/api.h" 29 #include "pxr/imaging/hd/bprim.h" 38 PXR_NAMESPACE_OPEN_SCOPE
69 enum DirtyBits : HdDirtyBits {
72 DirtySettings = 1 << 2,
73 DirtyRenderProducts = 1 << 3,
74 AllDirty = DirtyActive
83 struct RenderProduct {
87 std::string sourceName;
103 std::vector<RenderVar> renderVars;
110 float pixelAspectRatio;
113 TfToken aspectRatioConformPolicy;
125 bool disableMotionBlur;
129 using RenderProducts = std::vector<RenderProduct>;
139 bool IsActive()
const;
145 const RenderProducts& GetRenderProducts()
const;
156 HdDirtyBits *dirtyBits)
override final;
174 const HdDirtyBits *dirtyBits);
185 RenderProducts _products;
190 size_t hash_value(HdRenderSettings::RenderProduct
const &rp);
194 std::ostream& out,
const HdRenderSettings::RenderProduct&);
197 bool operator==(
const HdRenderSettings::RenderProduct& lhs,
198 const HdRenderSettings::RenderProduct& rhs);
200 bool operator!=(
const HdRenderSettings::RenderProduct& lhs,
201 const HdRenderSettings::RenderProduct& rhs);
204 std::ostream& out,
const HdRenderSettings::RenderProduct::RenderVar&);
207 bool operator==(
const HdRenderSettings::RenderProduct::RenderVar& lhs,
208 const HdRenderSettings::RenderProduct::RenderVar& rhs);
210 bool operator!=(
const HdRenderSettings::RenderProduct::RenderVar& lhs,
211 const HdRenderSettings::RenderProduct::RenderVar& rhs);
214 PXR_NAMESPACE_CLOSE_SCOPE
216 #endif // PXR_IMAGING_HD_RENDER_SETTINGS_H HD_API HdDirtyBits GetInitialDirtyBitsMask() const override
Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of thi...
HD_API void Sync(HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override final
Synchronizes state from the delegate to this object.
Basic type for a vector of 2 int components.
A map with string keys and VtValue values.
AR_API bool operator!=(const ArAssetInfo &lhs, const ArAssetInfo &rhs)
The HdRenderParam is an opaque (to core Hydra) handle, to an object that is obtained from the render ...
AR_API bool operator==(const ArAssetInfo &lhs, const ArAssetInfo &rhs)
Token for efficient comparison, assignment, and hashing of known strings.
Adapter class providing data exchange with the client scene graph.
A path value used to locate objects in layers or scenegraphs.
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].
Abstract hydra prim backing render settings scene description.
Basic type for a vector of 2 float components.
Bprim (buffer prim) is a base class of managing a blob of data that is used to communicate between th...
Basic type: 2-dimensional floating point range.