HDK
|
#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 |
Friends | |
HD_API friend std::ostream & | operator<< (std::ostream &out, const HdBufferArrayRegistry &self) |
Debug dump. More... | |
Manages the pool of buffer arrays.
Definition at line 56 of file bufferArrayRegistry.h.
HD_API HdBufferArrayRegistry::HdBufferArrayRegistry | ( | ) |
|
default |
HD_API HdBufferArrayRangeSharedPtr HdBufferArrayRegistry::AllocateRange | ( | HdAggregationStrategy * | strategy, |
TfToken const & | role, | ||
HdBufferSpecVector const & | bufferSpecs, | ||
HdBufferArrayUsageHint | usageHint | ||
) |
Allocate new buffer array range using strategy Thread-Safe
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.
|
friend |
Debug dump.