HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdAggregationStrategy Class Referenceabstract

#include <strategyBase.h>

+ Inheritance diagram for HdAggregationStrategy:

Public Types

typedef size_t AggregationId
 Aggregation ID. More...
 

Public Member Functions

virtual HD_API ~HdAggregationStrategy ()
 
virtual HdBufferArraySharedPtr CreateBufferArray (TfToken const &role, HdBufferSpecVector const &bufferSpecs, HdBufferArrayUsageHint usageHint)=0
 Factory for creating HdBufferArray. More...
 
virtual HdBufferArrayRangeSharedPtr CreateBufferArrayRange ()=0
 Factory for creating HdBufferArrayRange. More...
 
virtual AggregationId ComputeAggregationId (HdBufferSpecVector const &bufferSpecs, HdBufferArrayUsageHint usageHint) const =0
 Returns id for given bufferSpecs to be used for aggregation. More...
 
virtual HdBufferSpecVector GetBufferSpecs (HdBufferArraySharedPtr const &bufferArray) const =0
 Returns the buffer specs from a given buffer array. More...
 
virtual size_t GetResourceAllocation (HdBufferArraySharedPtr const &bufferArray, VtDictionary &result) const =0
 Returns the accumulated GPU resource allocation 
 /// for items in the BufferArray passed as parameter. More...
 

Detailed Description

Aggregation strategy base class.

Definition at line 48 of file strategyBase.h.

Member Typedef Documentation

Aggregation ID.

Definition at line 51 of file strategyBase.h.

Constructor & Destructor Documentation

virtual HD_API HdAggregationStrategy::~HdAggregationStrategy ( )
virtual

Member Function Documentation

virtual AggregationId HdAggregationStrategy::ComputeAggregationId ( HdBufferSpecVector const bufferSpecs,
HdBufferArrayUsageHint  usageHint 
) const
pure virtual

Returns id for given bufferSpecs to be used for aggregation.

Implemented in HdStInterleavedSSBOMemoryManager, HdStInterleavedUBOMemoryManager, HdStVBOMemoryManager, and HdStVBOSimpleMemoryManager.

virtual HdBufferArraySharedPtr HdAggregationStrategy::CreateBufferArray ( TfToken const role,
HdBufferSpecVector const bufferSpecs,
HdBufferArrayUsageHint  usageHint 
)
pure virtual
virtual HdBufferArrayRangeSharedPtr HdAggregationStrategy::CreateBufferArrayRange ( )
pure virtual
virtual HdBufferSpecVector HdAggregationStrategy::GetBufferSpecs ( HdBufferArraySharedPtr const bufferArray) const
pure virtual

Returns the buffer specs from a given buffer array.

Implemented in HdStInterleavedMemoryManager, HdStVBOMemoryManager, and HdStVBOSimpleMemoryManager.

virtual size_t HdAggregationStrategy::GetResourceAllocation ( HdBufferArraySharedPtr const bufferArray,
VtDictionary result 
) const
pure virtual

Returns the accumulated GPU resource allocation 
 /// for items in the BufferArray passed as parameter.

Implemented in HdStInterleavedMemoryManager, HdStVBOMemoryManager, and HdStVBOSimpleMemoryManager.


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