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

#include <bufferResource.h>

+ Inheritance diagram for HdBufferResource:

Public Member Functions

HD_API HdBufferResource (TfToken const &role, HdTupleType tupleType, int offset, int stride)
 
HD_API ~HdBufferResource ()
 
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)
 
virtual HD_API ~HdResource ()
 
TfToken constGetRole () 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.

Constructor & Destructor Documentation

HD_API HdBufferResource::HdBufferResource ( TfToken const role,
HdTupleType  tupleType,
int  offset,
int  stride 
)
HD_API HdBufferResource::~HdBufferResource ( )

Member Function Documentation

int HdBufferResource::GetOffset ( ) const
inline

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

Definition at line 67 of file bufferResource.h.

int HdBufferResource::GetStride ( ) const
inline

Returns the stride (in bytes) of underlying buffer.

Definition at line 70 of file bufferResource.h.

HdTupleType HdBufferResource::GetTupleType ( ) const
inline

Data type and count.

Definition at line 64 of file bufferResource.h.

Member Data Documentation

int HdBufferResource::_offset
protected

Definition at line 74 of file bufferResource.h.

int HdBufferResource::_stride
protected

Definition at line 75 of file bufferResource.h.

HdTupleType HdBufferResource::_tupleType
protected

Definition at line 73 of file bufferResource.h.


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