![]() |
HdRenderPass represents a single render iteration, rendering a view of the scene (the HdRprimCollection) for a specific viewer (the camera/viewport parameters in HdRenderPassState) to the current draw target. More...
Public Member Functions | |
HdEmbreeRenderPass (HdRenderIndex *index, HdRprimCollection const &collection, HdRenderThread *renderThread, HdEmbreeRenderer *renderer, std::atomic< int > *sceneVersion) | |
Renderpass constructor. More... | |
~HdEmbreeRenderPass () override | |
Renderpass destructor. More... | |
bool | IsConverged () const override |
Determine whether the sample buffer has enough samples. More... | |
![]() | |
HD_API | HdRenderPass (HdRenderIndex *index, HdRprimCollection const &collection) |
HdRprimCollection const & | GetRprimCollection () const |
Returns the HdRprimCollection to be drawn by this RenderPass. More... | |
HD_API void | SetRprimCollection (HdRprimCollection const &col) |
Sets the HdRprimCollection, note that this may invalidate internal caches used to accelerate drawing. More... | |
HdDirtyListSharedPtr const & | GetDirtyList () const |
Returns the dirty list (maintained in the change tracker) for efficient traversal. More... | |
HdRenderIndex * | GetRenderIndex () const |
Return the render index. More... | |
HD_API void | Sync () |
Sync the render pass resources. More... | |
HD_API void | Prepare (TfTokenVector const &renderTags) |
Prepare renderpass data. More... | |
HD_API void | Execute (HdRenderPassStateSharedPtr const &renderPassState, TfTokenVector const &renderTags) |
Execute a subset of buckets of this renderpass. More... | |
Protected Member Functions | |
void | _Execute (HdRenderPassStateSharedPtr const &renderPassState, TfTokenVector const &renderTags) override |
Draw the scene with the bound renderpass state. More... | |
void | _MarkCollectionDirty () override |
Update internal tracking to reflect a dirty collection. More... | |
![]() | |
virtual void | _Sync () |
Optional API: let derived classes sync data. More... | |
virtual void | _Prepare (TfTokenVector const &renderTags) |
Optional API: let derived classes prepare data. More... | |
HdRenderPass represents a single render iteration, rendering a view of the scene (the HdRprimCollection) for a specific viewer (the camera/viewport parameters in HdRenderPassState) to the current draw target.
This class does so by raycasting into the embree scene via HdEmbreeRenderer.
Definition at line 50 of file renderPass.h.
HdEmbreeRenderPass | ( | HdRenderIndex * | index, |
HdRprimCollection const & | collection, | ||
HdRenderThread * | renderThread, | ||
HdEmbreeRenderer * | renderer, | ||
std::atomic< int > * | sceneVersion | ||
) |
Renderpass constructor.
index | The render index containing scene data to render. |
collection | The initial rprim collection for this renderpass. |
renderThread | A handle to the global render thread. |
renderer | A handle to the global renderer. |
|
override |
Renderpass destructor.
|
overrideprotectedvirtual |
Draw the scene with the bound renderpass state.
renderPassState | Input parameters (including viewer parameters) for this renderpass. |
renderTags | Which rendertags should be drawn this pass. |
Implements HdRenderPass.
|
inlineoverrideprotectedvirtual |
Update internal tracking to reflect a dirty collection.
Reimplemented from HdRenderPass.
Definition at line 87 of file renderPass.h.
|
overridevirtual |
Determine whether the sample buffer has enough samples.
Reimplemented from HdRenderPass.