HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStInterleavedMemoryManager Class Reference

#include <interleavedMemoryManager.h>

+ Inheritance diagram for HdStInterleavedMemoryManager:

Classes

class  _StripedInterleavedBuffer
 striped buffer More...
 
class  _StripedInterleavedBufferRange
 specialized buffer array range More...
 

Protected Types

using _StripedInterleavedBufferSharedPtr = std::shared_ptr< _StripedInterleavedBuffer >
 
using _StripedInterleavedBufferRangeSharedPtr = std::shared_ptr< _StripedInterleavedBufferRange >
 
using _StripedInterleavedBufferRangePtr = std::weak_ptr< _StripedInterleavedBufferRange >
 

Protected Member Functions

 HdStInterleavedMemoryManager (Hgi *hgi)
 
virtual HdBufferArrayRangeSharedPtr CreateBufferArrayRange ()
 Factory for creating HdBufferArrayRange. More...
 
virtual HdBufferSpecVector GetBufferSpecs (HdBufferArraySharedPtr const &bufferArray) const
 Returns the buffer specs from a given buffer array. More...
 
virtual size_t GetResourceAllocation (HdBufferArraySharedPtr const &bufferArray, VtDictionary &result) const
 Returns the size of the GPU memory used by the passed buffer array. More...
 

Protected Attributes

Hgi_hgi
 

Additional Inherited Members

- Public Types inherited from HdAggregationStrategy
typedef size_t AggregationId
 Aggregation ID. More...
 
- Public Member Functions inherited from HdAggregationStrategy
virtual HD_API ~HdAggregationStrategy ()
 
virtual HdBufferArraySharedPtr CreateBufferArray (TfToken const &role, HdBufferSpecVector const &bufferSpecs, HdBufferArrayUsageHint usageHint)=0
 Factory for creating HdBufferArray. More...
 
virtual AggregationId ComputeAggregationId (HdBufferSpecVector const &bufferSpecs, HdBufferArrayUsageHint usageHint) const =0
 Returns id for given bufferSpecs to be used for aggregation. More...
 

Detailed Description

Interleaved memory manager (base class).

Definition at line 52 of file interleavedMemoryManager.h.

Member Typedef Documentation

Constructor & Destructor Documentation

HdStInterleavedMemoryManager::HdStInterleavedMemoryManager ( Hgi hgi)
inlineprotected

Definition at line 280 of file interleavedMemoryManager.h.

Member Function Documentation

virtual HdBufferArrayRangeSharedPtr HdStInterleavedMemoryManager::CreateBufferArrayRange ( )
protectedvirtual

Factory for creating HdBufferArrayRange.

Implements HdAggregationStrategy.

virtual HdBufferSpecVector HdStInterleavedMemoryManager::GetBufferSpecs ( HdBufferArraySharedPtr const bufferArray) const
protectedvirtual

Returns the buffer specs from a given buffer array.

Implements HdAggregationStrategy.

virtual size_t HdStInterleavedMemoryManager::GetResourceAllocation ( HdBufferArraySharedPtr const bufferArray,
VtDictionary result 
) const
protectedvirtual

Returns the size of the GPU memory used by the passed buffer array.

Implements HdAggregationStrategy.

Member Data Documentation

Hgi* HdStInterleavedMemoryManager::_hgi
protected

Definition at line 294 of file interleavedMemoryManager.h.


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