All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdBufferArrayRegistry Class Reference

Manages the pool of buffer arrays. More...

Public Member Functions

 HF_MALLOC_TAG_NEW ("new HdBufferArrayRegistry")
 
HD_API HdBufferArrayRangeSharedPtr AllocateRange (HdAggregationStrategy *strategy, TfToken const &role, HdBufferSpecVector const &bufferSpecs, HdBufferArrayUsageHint usageHint)
 Allocate new buffer array range using strategy Thread-Safe. More...
 
HD_API void ReallocateAll (HdAggregationStrategy *strategy)
 Triggers reallocation on all buffers managed by the registry. More...
 
HD_API void GarbageCollect ()
 Frees up buffers that no longer contain any allocated ranges. More...
 
HD_API size_t GetResourceAllocation (HdAggregationStrategy *strategy, VtDictionary &result) const
 Generate a report on resources consumed by the managed buffer array. More...
 

Friends

HD_API friend std::ostream & operator<< (std::ostream &out, const HdBufferArrayRegistry &self)
 Debug dump. More...
 

Detailed Description

Manages the pool of buffer arrays.

Definition at line 56 of file bufferArrayRegistry.h.

Member Function Documentation

HD_API HdBufferArrayRangeSharedPtr AllocateRange ( HdAggregationStrategy strategy,
TfToken const &  role,
HdBufferSpecVector const &  bufferSpecs,
HdBufferArrayUsageHint  usageHint 
)

Allocate new buffer array range using strategy Thread-Safe.

HD_API void GarbageCollect ( )

Frees up buffers that no longer contain any allocated ranges.

HD_API size_t GetResourceAllocation ( HdAggregationStrategy strategy,
VtDictionary result 
) const

Generate a report on resources consumed by the managed buffer array.

The returned size is an esitmate of the gpu memory consumed by the buffers

HD_API void ReallocateAll ( HdAggregationStrategy strategy)

Triggers reallocation on all buffers managed by the registry.

Friends And Related Function Documentation

HD_API friend std::ostream& operator<< ( std::ostream &  out,
const HdBufferArrayRegistry self 
)
friend

Debug dump.


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