24 #ifndef PXR_IMAGING_HD_RENDER_PASS_H 25 #define PXR_IMAGING_HD_RENDER_PASS_H 28 #include "pxr/imaging/hd/api.h" 29 #include "pxr/imaging/hd/version.h" 30 #include "pxr/imaging/hd/rprimCollection.h" 31 #include "pxr/imaging/hd/task.h" 35 PXR_NAMESPACE_OPEN_SCOPE
40 using HdRenderPassSharedPtr = std::shared_ptr<class HdRenderPass>;
41 using HdRenderPassStateSharedPtr = std::shared_ptr<class HdRenderPassState>;
102 void Execute(HdRenderPassStateSharedPtr
const &renderPassState,
109 virtual bool IsConverged()
const {
return true; }
114 virtual void _Execute(HdRenderPassStateSharedPtr
const &renderPassState,
142 PXR_NAMESPACE_CLOSE_SCOPE
144 #endif //PXR_IMAGING_HD_RENDER_PASS_H virtual void _MarkCollectionDirty()
Optional API: let derived classes mark their collection tracking as dirty.
The Hydra render index is a flattened representation of the client scene graph, which may be composed...
HD_API void Execute(HdRenderPassStateSharedPtr const &renderPassState, TfTokenVector const &renderTags)
Execute a subset of buckets of this renderpass.
HD_API void SetRprimCollection(HdRprimCollection const &col)
Sets the HdRprimCollection, note that this may invalidate internal caches used to accelerate drawing.
An abstract class representing a single render iteration over a set of prims (the HdRprimCollection),...
HdRenderIndex * GetRenderIndex() const
Return the render index.
virtual void _Execute(HdRenderPassStateSharedPtr const &renderPassState, TfTokenVector const &renderTags)=0
Virtual API: Execute the buckets corresponding to renderTags; renderTags.empty() implies execute ever...
Adapter class providing data exchange with the client scene graph.
HdRprimCollection const & GetRprimCollection() const
Returns the HdRprimCollection to be drawn by this RenderPass.
std::vector< TfToken > TfTokenVector
Convenience types.
A named, semantic collection of objects.
virtual void _Sync()
Optional API: let derived classes sync data.
HD_API void Sync()
Sync the render pass resources.