|
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. | |
Manages the pool of buffer arrays.
Definition at line 55 of file bufferArrayRegistry.h.
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 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.
The returned size is an esitmate of the gpu memory consumed by the buffers
HDST_API void ReallocateAll | ( | HdStAggregationStrategy * | strategy | ) |
Triggers reallocation on all buffers managed by the registry.
|
friend |
Debug dump.