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

specialized buffer array range More...

#include <vboMemoryManager.h>

+ Inheritance diagram for HdStVBOMemoryManager::_StripedBufferArrayRange:

Public Member Functions

 _StripedBufferArrayRange (HdStResourceRegistry *resourceRegistry)
 Constructor. More...
 
HDST_API ~_StripedBufferArrayRange () override
 Destructor. More...
 
bool IsValid () const override
 Returns true if this range is valid. More...
 
HDST_API bool IsAssigned () const override
 Returns true is the range has been assigned to a buffer. More...
 
bool IsImmutable () const override
 Returns true if this bar is marked as immutable. More...
 
bool RequiresStaging () const override
 Returns true if this needs a staging buffer for CPU to GPU copies. More...
 
HDST_API bool Resize (int numElements) override
 
HDST_API void CopyData (HdBufferSourceSharedPtr const &bufferSource) override
 Copy source data into buffer. More...
 
HDST_API VtValue ReadData (TfToken const &name) const override
 Read back the buffer content. More...
 
int GetElementOffset () const override
 Returns the relative element offset in aggregated buffer. More...
 
int GetByteOffset (TfToken const &resourceName) const override
 
size_t GetNumElements () const override
 Returns the number of elements. More...
 
size_t GetVersion () const override
 Returns the version of the buffer array. More...
 
void IncrementVersion () override
 Increment the version of the buffer array. More...
 
HDST_API size_t GetMaxNumElements () const override
 Returns the max number of elements. More...
 
HDST_API HdBufferArrayUsageHint GetUsageHint () const override
 Returns the usage hint from the underlying buffer array. More...
 
HDST_API
HdStBufferResourceSharedPtr 
GetResource () const override
 
HDST_API
HdStBufferResourceSharedPtr 
GetResource (TfToken const &name) override
 Returns the named GPU resource. More...
 
HDST_API
HdStBufferResourceNamedList
const
GetResources () const override
 Returns the list of all named GPU resources for this bufferArrayRange. More...
 
HDST_API void SetBufferArray (HdBufferArray *bufferArray) override
 Sets the buffer array associated with this buffer;. More...
 
HDST_API void DebugDump (std::ostream &out) const override
 Debug dump. More...
 
void SetElementOffset (int offset)
 Set the relative offset for this range. More...
 
void SetNumElements (int numElements)
 Set the number of elements for this range. More...
 
int GetCapacity () const
 Returns the capacity of allocated area. More...
 
void SetCapacity (int capacity)
 Set the capacity of allocated area for this range. More...
 
void Invalidate ()
 Make this range invalid. More...
 
- Public Member Functions inherited from HdStBufferArrayRange
 HdStBufferArrayRange (HdStResourceRegistry *resourceRegistry)
 
virtual HDST_API ~HdStBufferArrayRange ()
 
virtual HDST_API void GetBufferSpecs (HdBufferSpecVector *bufferSpecs) const override
 Sets the bufferSpecs for all resources. More...
 
virtual int GetElementStride () const
 
- Public Member Functions inherited from HdBufferArrayRange
HD_API HdBufferArrayRange ()
 
virtual HD_API ~HdBufferArrayRange ()
 
bool IsAggregatedWith (HdBufferArrayRangeSharedPtr const &other) const
 Returns true if the underlying buffer array is aggregated to other's. More...
 

Protected Member Functions

HDST_API const void_GetAggregation () const override
 Returns the aggregation container. More...
 
- Protected Member Functions inherited from HdStBufferArrayRange
HdStResourceRegistryGetResourceRegistry ()
 
HdStResourceRegistryGetResourceRegistry () const
 
- Protected Member Functions inherited from HdBufferArrayRange
 HdBufferArrayRange (const HdBufferArrayRange &)=delete
 
HdBufferArrayRangeoperator= (const HdBufferArrayRange &)=delete
 

Detailed Description

specialized buffer array range

Definition at line 89 of file vboMemoryManager.h.

Constructor & Destructor Documentation

HdStVBOMemoryManager::_StripedBufferArrayRange::_StripedBufferArrayRange ( HdStResourceRegistry resourceRegistry)
inline

Constructor.

Definition at line 93 of file vboMemoryManager.h.

HDST_API HdStVBOMemoryManager::_StripedBufferArrayRange::~_StripedBufferArrayRange ( )
override

Destructor.

Member Function Documentation

HDST_API const void* HdStVBOMemoryManager::_StripedBufferArrayRange::_GetAggregation ( ) const
overrideprotectedvirtual

Returns the aggregation container.

Implements HdBufferArrayRange.

HDST_API void HdStVBOMemoryManager::_StripedBufferArrayRange::CopyData ( HdBufferSourceSharedPtr const bufferSource)
overridevirtual

Copy source data into buffer.

Implements HdBufferArrayRange.

HDST_API void HdStVBOMemoryManager::_StripedBufferArrayRange::DebugDump ( std::ostream &  out) const
overridevirtual

Debug dump.

Implements HdBufferArrayRange.

int HdStVBOMemoryManager::_StripedBufferArrayRange::GetByteOffset ( TfToken const resourceName) const
overridevirtual

Returns the byte offset at which this range begins in the underlying buffer array for the given resource.

Implements HdBufferArrayRange.

int HdStVBOMemoryManager::_StripedBufferArrayRange::GetCapacity ( ) const
inline

Returns the capacity of allocated area.

Definition at line 198 of file vboMemoryManager.h.

int HdStVBOMemoryManager::_StripedBufferArrayRange::GetElementOffset ( ) const
inlineoverridevirtual

Returns the relative element offset in aggregated buffer.

Implements HdBufferArrayRange.

Definition at line 135 of file vboMemoryManager.h.

HDST_API size_t HdStVBOMemoryManager::_StripedBufferArrayRange::GetMaxNumElements ( ) const
overridevirtual

Returns the max number of elements.

Implements HdBufferArrayRange.

size_t HdStVBOMemoryManager::_StripedBufferArrayRange::GetNumElements ( ) const
inlineoverridevirtual

Returns the number of elements.

Implements HdBufferArrayRange.

Definition at line 144 of file vboMemoryManager.h.

HDST_API HdStBufferResourceSharedPtr HdStVBOMemoryManager::_StripedBufferArrayRange::GetResource ( ) const
overridevirtual

Returns the GPU resource. If the buffer array contains more than one resource, this method raises a coding error.

Implements HdStBufferArrayRange.

HDST_API HdStBufferResourceSharedPtr HdStVBOMemoryManager::_StripedBufferArrayRange::GetResource ( TfToken const name)
overridevirtual

Returns the named GPU resource.

Implements HdStBufferArrayRange.

HDST_API HdStBufferResourceNamedList const& HdStVBOMemoryManager::_StripedBufferArrayRange::GetResources ( ) const
overridevirtual

Returns the list of all named GPU resources for this bufferArrayRange.

Implements HdStBufferArrayRange.

HDST_API HdBufferArrayUsageHint HdStVBOMemoryManager::_StripedBufferArrayRange::GetUsageHint ( ) const
overridevirtual

Returns the usage hint from the underlying buffer array.

Implements HdBufferArrayRange.

size_t HdStVBOMemoryManager::_StripedBufferArrayRange::GetVersion ( ) const
inlineoverridevirtual

Returns the version of the buffer array.

Implements HdBufferArrayRange.

Definition at line 149 of file vboMemoryManager.h.

void HdStVBOMemoryManager::_StripedBufferArrayRange::IncrementVersion ( )
inlineoverridevirtual

Increment the version of the buffer array.

Implements HdBufferArrayRange.

Definition at line 154 of file vboMemoryManager.h.

void HdStVBOMemoryManager::_StripedBufferArrayRange::Invalidate ( )
inline

Make this range invalid.

Definition at line 208 of file vboMemoryManager.h.

HDST_API bool HdStVBOMemoryManager::_StripedBufferArrayRange::IsAssigned ( ) const
overridevirtual

Returns true is the range has been assigned to a buffer.

Implements HdBufferArrayRange.

bool HdStVBOMemoryManager::_StripedBufferArrayRange::IsImmutable ( ) const
overridevirtual

Returns true if this bar is marked as immutable.

Implements HdBufferArrayRange.

bool HdStVBOMemoryManager::_StripedBufferArrayRange::IsValid ( ) const
inlineoverridevirtual

Returns true if this range is valid.

Implements HdBufferArrayRange.

Definition at line 107 of file vboMemoryManager.h.

HDST_API VtValue HdStVBOMemoryManager::_StripedBufferArrayRange::ReadData ( TfToken const name) const
overridevirtual

Read back the buffer content.

Implements HdBufferArrayRange.

bool HdStVBOMemoryManager::_StripedBufferArrayRange::RequiresStaging ( ) const
overridevirtual

Returns true if this needs a staging buffer for CPU to GPU copies.

Implements HdBufferArrayRange.

HDST_API bool HdStVBOMemoryManager::_StripedBufferArrayRange::Resize ( int  numElements)
overridevirtual

Resize memory area for this range. Returns true if it causes container buffer reallocation.

Implements HdBufferArrayRange.

HDST_API void HdStVBOMemoryManager::_StripedBufferArrayRange::SetBufferArray ( HdBufferArray bufferArray)
overridevirtual

Sets the buffer array associated with this buffer;.

Implements HdBufferArrayRange.

void HdStVBOMemoryManager::_StripedBufferArrayRange::SetCapacity ( int  capacity)
inline

Set the capacity of allocated area for this range.

Definition at line 203 of file vboMemoryManager.h.

void HdStVBOMemoryManager::_StripedBufferArrayRange::SetElementOffset ( int  offset)
inline

Set the relative offset for this range.

Definition at line 188 of file vboMemoryManager.h.

void HdStVBOMemoryManager::_StripedBufferArrayRange::SetNumElements ( int  numElements)
inline

Set the number of elements for this range.

Definition at line 193 of file vboMemoryManager.h.


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