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

A specific type of HdResource (GPU resource) representing a buffer object. More...

+ Inheritance diagram for HdBufferResource:

Public Member Functions

HD_API HdBufferResource (TfToken const &role, HdTupleType tupleType, int offset, int stride)
 
HdTupleType GetTupleType () const
 Data type and count. More...
 
int GetOffset () const
 Returns the interleaved offset (in bytes) of this data. More...
 
int GetStride () const
 Returns the stride (in bytes) of underlying buffer. More...
 
- Public Member Functions inherited from HdResource
HD_API HdResource (TfToken const &role)
 
TfToken const & GetRole () const
 Returns the role of the GPU data in this resource. More...
 
HD_API size_t GetSize () const
 Returns the size of the resource allocated in the GPU. More...
 

Protected Attributes

HdTupleType _tupleType
 
int _offset
 
int _stride
 

Additional Inherited Members

- Protected Member Functions inherited from HdResource
HD_API void SetSize (size_t size)
 Stores the size of the resource allocated in the GPU. More...
 

Detailed Description

A specific type of HdResource (GPU resource) representing a buffer object.

Definition at line 53 of file bufferResource.h.

Member Function Documentation

int GetOffset ( ) const
inline

Returns the interleaved offset (in bytes) of this data.

Definition at line 67 of file bufferResource.h.

int GetStride ( ) const
inline

Returns the stride (in bytes) of underlying buffer.

Definition at line 70 of file bufferResource.h.

HdTupleType GetTupleType ( ) const
inline

Data type and count.

Definition at line 64 of file bufferResource.h.


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