Loading...
Searching...
No Matches
HdStAggregationStrategy Class Referenceabstract

Aggregation strategy base class. More...

#include <strategyBase.h>

+ Inheritance diagram for HdStAggregationStrategy:

Public Types

typedef size_t AggregationId
 Aggregation ID.
 

Public Member Functions

virtual HdBufferArraySharedPtr CreateBufferArray (TfToken const &role, HdBufferSpecVector const &bufferSpecs, HdBufferArrayUsageHint usageHint)=0
 Factory for creating HdBufferArray.
 
virtual HdBufferArrayRangeSharedPtr CreateBufferArrayRange ()=0
 Factory for creating HdBufferArrayRange.
 
virtual AggregationId ComputeAggregationId (HdBufferSpecVector const &bufferSpecs, HdBufferArrayUsageHint usageHint) const =0
 Returns id for given bufferSpecs to be used for aggregation.
 
virtual HdBufferSpecVector GetBufferSpecs (HdBufferArraySharedPtr const &bufferArray) const =0
 Returns the buffer specs from a given buffer array.
 
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.
 
virtual HDST_API void Flush ()
 (Optional) called to Flush consolidated / staging buffers.
 

Detailed Description

Aggregation strategy base class.

Definition at line 48 of file strategyBase.h.

Member Typedef Documentation

◆ AggregationId

typedef size_t AggregationId

Aggregation ID.

Definition at line 51 of file strategyBase.h.

Member Function Documentation

◆ ComputeAggregationId()

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

Returns id for given bufferSpecs to be used for aggregation.

Implemented in HdStVBOMemoryManager, and HdStVBOSimpleMemoryManager.

◆ CreateBufferArray()

virtual HdBufferArraySharedPtr CreateBufferArray ( TfToken const &  role,
HdBufferSpecVector const &  bufferSpecs,
HdBufferArrayUsageHint  usageHint 
)
pure virtual

Factory for creating HdBufferArray.

Implemented in HdStVBOMemoryManager, and HdStVBOSimpleMemoryManager.

◆ CreateBufferArrayRange()

virtual HdBufferArrayRangeSharedPtr CreateBufferArrayRange ( )
pure virtual

◆ Flush()

virtual HDST_API void Flush ( )
inlinevirtual

(Optional) called to Flush consolidated / staging buffers.

Definition at line 83 of file strategyBase.h.

◆ GetBufferSpecs()

virtual HdBufferSpecVector GetBufferSpecs ( HdBufferArraySharedPtr const &  bufferArray) const
pure virtual

Returns the buffer specs from a given buffer array.

Implemented in HdStVBOMemoryManager, HdStVBOSimpleMemoryManager, and HdStInterleavedMemoryManager.

◆ GetResourceAllocation()

virtual size_t 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 HdStVBOMemoryManager, HdStVBOSimpleMemoryManager, and HdStInterleavedMemoryManager.


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