HDK
|
#include <renderSettings.h>
Classes | |
struct | RenderProduct |
Public Types | |
enum | DirtyBits : HdDirtyBits { Clean = 0, DirtyActive = 1 << 1, DirtyNamespacedSettings = 1 << 2, DirtyRenderProducts = 1 << 3, DirtyIncludedPurposes = 1 << 4, DirtyMaterialBindingPurposes = 1 << 5, DirtyRenderingColorSpace = 1 << 6, DirtyShutterInterval = 1 << 7, AllDirty } |
using | RenderProducts = std::vector< RenderProduct > |
using | NamespacedSettings = VtDictionary |
Public Member Functions | |
HD_API | ~HdRenderSettings () override |
HD_API bool | IsActive () const |
HD_API bool | IsValid () const |
HD_API const NamespacedSettings & | GetNamespacedSettings () const |
HD_API const RenderProducts & | GetRenderProducts () const |
HD_API const VtArray< TfToken > & | GetIncludedPurposes () const |
HD_API const VtArray< TfToken > & | GetMaterialBindingPurposes () const |
HD_API const TfToken & | GetRenderingColorSpace () const |
HD_API const VtValue & | GetShutterInterval () const |
HD_API void | Sync (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) overridefinal |
HD_API HdDirtyBits | GetInitialDirtyBitsMask () const override |
Public Member Functions inherited from HdBprim | |
HD_API | HdBprim (SdfPath const &id) |
virtual HD_API | ~HdBprim () |
SdfPath const & | GetId () const |
virtual HD_API void | Finalize (HdRenderParam *renderParam) |
Protected Member Functions | |
HD_API | HdRenderSettings (SdfPath const &id) |
virtual void | _Sync (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, const HdDirtyBits *dirtyBits) |
Hydra prim backing render settings scene description. While it is a state prim (Sprim) in spirit, it is made to be a Bprim to ensure that it is sync'd prior to Sprims and Rprims to allow render setting opinions to be discovered and inform the sync process of those prims.
We aim to transition away from the API and task based render settings opinions above to using render settings scene description to drive rendering in Hydra.
Definition at line 67 of file renderSettings.h.
Definition at line 141 of file renderSettings.h.
using HdRenderSettings::RenderProducts = std::vector<RenderProduct> |
Definition at line 140 of file renderSettings.h.
Enumerator | |
---|---|
Clean | |
DirtyActive | |
DirtyNamespacedSettings | |
DirtyRenderProducts | |
DirtyIncludedPurposes | |
DirtyMaterialBindingPurposes | |
DirtyRenderingColorSpace | |
DirtyShutterInterval | |
AllDirty |
Definition at line 71 of file renderSettings.h.
|
override |
|
protectedvirtual |
|
overridevirtual |
Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of this prim. Typically this would be all dirty bits.
Implements HdBprim.
HD_API const NamespacedSettings& HdRenderSettings::GetNamespacedSettings | ( | ) | const |
HD_API const RenderProducts& HdRenderSettings::GetRenderProducts | ( | ) | const |
HD_API bool HdRenderSettings::IsActive | ( | ) | const |
HD_API bool HdRenderSettings::IsValid | ( | ) | const |
|
finaloverridevirtual |
Synchronizes state from the delegate to this object.
[in,out] | dirtyBits | On input specifies which state is is dirty and can be pulled from the scene delegate. On output specifies which bits are still dirty and were not cleaned by the sync. |
Implements HdBprim.