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

#include <bufferArrayRegistry.h>

Public Member Functions

 HF_MALLOC_TAG_NEW ("new HdBufferArrayRegistry")
HD_API HdBufferArrayRegistry ()
 ~HdBufferArrayRegistry ()=default
HD_API HdBufferArrayRangeSharedPtr AllocateRange (HdAggregationStrategy *strategy, TfToken const &role, HdBufferSpecVector const &bufferSpecs, HdBufferArrayUsageHint usageHint)
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


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.

Constructor & Destructor Documentation

HD_API HdBufferArrayRegistry::HdBufferArrayRegistry ( )
HdBufferArrayRegistry::~HdBufferArrayRegistry ( )

Member Function Documentation

HD_API HdBufferArrayRangeSharedPtr HdBufferArrayRegistry::AllocateRange ( HdAggregationStrategy strategy,
TfToken const role,
HdBufferSpecVector const bufferSpecs,
HdBufferArrayUsageHint  usageHint 

Allocate new buffer array range using strategy Thread-Safe

HD_API void HdBufferArrayRegistry::GarbageCollect ( )

Frees up buffers that no longer contain any allocated ranges.

HD_API size_t HdBufferArrayRegistry::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

HdBufferArrayRegistry::HF_MALLOC_TAG_NEW ( "new HdBufferArrayRegistry )
HD_API void HdBufferArrayRegistry::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 

Debug dump.

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