Loading...
Searching...
No Matches
HdStBufferArrayRegistry Class Reference

Manages the pool of buffer arrays. More...

#include <bufferArrayRegistry.h>

Public Member Functions

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

Friends

HDST_API friend std::ostream & operator<< (std::ostream &out, const HdStBufferArrayRegistry &self)
 Debug dump.
 

Detailed Description

Manages the pool of buffer arrays.

Definition at line 55 of file bufferArrayRegistry.h.

Member Function Documentation

◆ AllocateRange()

HDST_API HdBufferArrayRangeSharedPtr AllocateRange ( HdStAggregationStrategy strategy,
TfToken const &  role,
HdBufferSpecVector const &  bufferSpecs,
HdBufferArrayUsageHint  usageHint 
)

Allocate new buffer array range using strategy Thread-Safe.

◆ GarbageCollect()

HDST_API void GarbageCollect ( )

Frees up buffers that no longer contain any allocated ranges.

◆ GetResourceAllocation()

HDST_API size_t GetResourceAllocation ( HdStAggregationStrategy 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

◆ ReallocateAll()

HDST_API void ReallocateAll ( HdStAggregationStrategy strategy)

Triggers reallocation on all buffers managed by the registry.

Friends And Related Function Documentation

◆ operator<<

HDST_API friend std::ostream & operator<< ( std::ostream &  out,
const HdStBufferArrayRegistry self 
)
friend

Debug dump.


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