HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStRenderParam Class Referencefinal

#include <renderParam.h>

+ Inheritance diagram for HdStRenderParam:

Public Member Functions

 HdStRenderParam ()
 
 ~HdStRenderParam () override
 
HDST_API void MarkDrawBatchesDirty ()
 Draw items cache and batch invalidation. More...
 
HDST_API unsigned int GetDrawBatchesVersion () const
 
HDST_API void MarkMaterialTagsDirty ()
 
HDST_API unsigned int GetMaterialTagsVersion () const
 
HDST_API void MarkGeomSubsetDrawItemsDirty ()
 
HDST_API unsigned int GetGeomSubsetDrawItemsVersion () const
 
HDST_API bool HasMaterialTag (const TfToken &materialTag) const
 Material tag tracking. More...
 
HDST_API void IncreaseMaterialTagCount (const TfToken &materialTag)
 Register that there is an rprim with given materialTag. More...
 
HDST_API void DecreaseMaterialTagCount (const TfToken &materialTag)
 Unregister that there is an rprim with given materialTag. More...
 
HDST_API bool HasAnyRenderTag (const TfTokenVector &renderTags) const
 Render tag tracking. More...
 
HDST_API void IncreaseRenderTagCount (const TfToken &renderTag)
 Register that there is an rprim with given renderTag. More...
 
HDST_API void DecreaseRenderTagCount (const TfToken &renderTag)
 Unregister that there is an rprim with given renderTag. More...
 
void SetGarbageCollectionNeeded ()
 Garbage collection tracking. More...
 
void ClearGarbageCollectionNeeded ()
 
bool IsGarbageCollectionNeeded () const
 
- Public Member Functions inherited from HdRenderParam
 HdRenderParam ()
 
virtual HD_API ~HdRenderParam ()
 

Detailed Description

The render delegate can create an object of type HdRenderParam, to pass to each prim during Sync(). Storm uses this class to house global counters amd flags that assist invalidation of draw batch caches.

Definition at line 43 of file renderParam.h.

Constructor & Destructor Documentation

HdStRenderParam::HdStRenderParam ( )
HdStRenderParam::~HdStRenderParam ( )
override

Member Function Documentation

void HdStRenderParam::ClearGarbageCollectionNeeded ( )
inline

Definition at line 119 of file renderParam.h.

HDST_API void HdStRenderParam::DecreaseMaterialTagCount ( const TfToken materialTag)

Unregister that there is an rprim with given materialTag.

HDST_API void HdStRenderParam::DecreaseRenderTagCount ( const TfToken renderTag)

Unregister that there is an rprim with given renderTag.

HDST_API unsigned int HdStRenderParam::GetDrawBatchesVersion ( ) const
HDST_API unsigned int HdStRenderParam::GetGeomSubsetDrawItemsVersion ( ) const
HDST_API unsigned int HdStRenderParam::GetMaterialTagsVersion ( ) const
HDST_API bool HdStRenderParam::HasAnyRenderTag ( const TfTokenVector renderTags) const

Render tag tracking.

Does render index have rprims with given renderTag?

HDST_API bool HdStRenderParam::HasMaterialTag ( const TfToken materialTag) const

Material tag tracking.

Does render index have rprims with given materialTag? Note that for performance reasons and ease of implementation (HdRprimSharedData::materialTag initializes to the default material tag), this always returns true for the default (and empty) material tag.

HDST_API void HdStRenderParam::IncreaseMaterialTagCount ( const TfToken materialTag)

Register that there is an rprim with given materialTag.

HDST_API void HdStRenderParam::IncreaseRenderTagCount ( const TfToken renderTag)

Register that there is an rprim with given renderTag.

bool HdStRenderParam::IsGarbageCollectionNeeded ( ) const
inline

Definition at line 123 of file renderParam.h.

HDST_API void HdStRenderParam::MarkDrawBatchesDirty ( )

Draw items cache and batch invalidation.

Marks all batches dirty, meaning they need to be validated and potentially rebuilt.

HDST_API void HdStRenderParam::MarkGeomSubsetDrawItemsDirty ( )

Marks geom subsets draw items dirty, meaning that the draw items associated with the collection of a render pass need to be re-gathered.

HDST_API void HdStRenderParam::MarkMaterialTagsDirty ( )

Marks material tags dirty, meaning that the draw items associated with the collection of a render pass need to be re-gathered.

void HdStRenderParam::SetGarbageCollectionNeeded ( )
inline

Garbage collection tracking.

Definition at line 115 of file renderParam.h.


The documentation for this class was generated from the following file: