|
HDK
|
#include <bufferArrayRegistry.h>
Public Member Functions | |
| HF_MALLOC_TAG_NEW ("new HdStBufferArrayRegistry") | |
| HDST_API | HdStBufferArrayRegistry () |
| ~HdStBufferArrayRegistry ()=default | |
| HDST_API HdBufferArrayRangeSharedPtr | AllocateRange (HdStAggregationStrategy *strategy, TfToken const &role, HdBufferSpecVector const &bufferSpecs, HdBufferArrayUsageHint usageHint) |
| HDST_API void | ReallocateAll (HdStAggregationStrategy *strategy) |
| Triggers reallocation on all buffers managed by the registry. More... | |
| HDST_API void | GarbageCollect () |
| Frees up buffers that no longer contain any allocated ranges. More... | |
| HDST_API size_t | GetResourceAllocation (HdStAggregationStrategy *strategy, VtDictionary &result) const |
Friends | |
| HDST_API friend std::ostream & | operator<< (std::ostream &out, const HdStBufferArrayRegistry &self) |
| Debug dump. More... | |
Manages the pool of buffer arrays.
Definition at line 38 of file bufferArrayRegistry.h.
| HDST_API HdStBufferArrayRegistry::HdStBufferArrayRegistry | ( | ) |
|
default |
| HDST_API HdBufferArrayRangeSharedPtr HdStBufferArrayRegistry::AllocateRange | ( | HdStAggregationStrategy * | 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.
| HDST_API size_t HdStBufferArrayRegistry::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
| HdStBufferArrayRegistry::HF_MALLOC_TAG_NEW | ( | "new HdStBufferArrayRegistry" | ) |
| HDST_API void HdStBufferArrayRegistry::ReallocateAll | ( | HdStAggregationStrategy * | strategy | ) |
Triggers reallocation on all buffers managed by the registry.
|
friend |
Debug dump.