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 55 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 87 of file bufferResource.h.
|
inline |
Returns the interleaved offset (in bytes) of the data.
Definition at line 77 of file bufferResource.h.
Returns the role of the data in this resource.
Definition at line 68 of file bufferResource.h.
|
inline |
Returns the size (in bytes) of the data.
Definition at line 71 of file bufferResource.h.
|
inline |
Returns the stride (in bytes) between data elements.
Definition at line 80 of file bufferResource.h.
|
inline |
Data type and count.
Definition at line 74 of file bufferResource.h.
HDST_API void HdStBufferResource::SetAllocation | ( | HgiBufferHandle const & | handle, |
size_t | size | ||
) |
Sets the HgiBufferHandle for this resource and its size.