|
HDK
|
#include <bufferResource.h>
Public Member Functions | |
| HDST_API | HdStBufferResource (TfToken const &role, HdTupleType tupleType, int offset, int stride) |
| HDST_API | ~HdStBufferResource () |
| TfToken const & | GetRole () const |
| Returns the role of the data in this resource. More... | |
| size_t | GetSize () const |
| Returns the size (in bytes) of the data. More... | |
| HdTupleType | GetTupleType () const |
| Data type and count. More... | |
| int | GetOffset () const |
| Returns the interleaved offset (in bytes) of the data. More... | |
| int | GetStride () const |
| Returns the stride (in bytes) between data elements. More... | |
| HDST_API void | SetAllocation (HgiBufferHandle const &handle, size_t size) |
| Sets the HgiBufferHandle for this resource and its size. More... | |
| HgiBufferHandle & | GetHandle () |
| Returns the HgiBufferHandle for this GPU resource. More... | |
A GPU resource contained within an underlying HgiBuffer.
Definition at line 38 of file bufferResource.h.
| HDST_API HdStBufferResource::HdStBufferResource | ( | TfToken const & | role, |
| HdTupleType | tupleType, | ||
| int | offset, | ||
| int | stride | ||
| ) |
| HDST_API HdStBufferResource::~HdStBufferResource | ( | ) |
|
inline |
Returns the HgiBufferHandle for this GPU resource.
Definition at line 70 of file bufferResource.h.
|
inline |
Returns the interleaved offset (in bytes) of the data.
Definition at line 60 of file bufferResource.h.
|
inline |
Returns the role of the data in this resource.
Definition at line 51 of file bufferResource.h.
|
inline |
Returns the size (in bytes) of the data.
Definition at line 54 of file bufferResource.h.
|
inline |
Returns the stride (in bytes) between data elements.
Definition at line 63 of file bufferResource.h.
|
inline |
Data type and count.
Definition at line 57 of file bufferResource.h.
| HDST_API void HdStBufferResource::SetAllocation | ( | HgiBufferHandle const & | handle, |
| size_t | size | ||
| ) |
Sets the HgiBufferHandle for this resource and its size.