A specific type of HdResource (GPU resource) representing a buffer object. More...
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... | |
A specific type of HdResource (GPU resource) representing a buffer object.
Definition at line 53 of file bufferResource.h.
|
inline |
Returns the interleaved offset (in bytes) of this data.
Definition at line 67 of file bufferResource.h.
|
inline |
Returns the stride (in bytes) of underlying buffer.
Definition at line 70 of file bufferResource.h.
|
inline |
Data type and count.
Definition at line 64 of file bufferResource.h.