Base class for all GPU resource objects. More...
Public Member Functions | |
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 Member Functions | |
HD_API void | SetSize (size_t size) |
Stores the size of the resource allocated in the GPU. More... | |
Base class for all GPU resource objects.
Definition at line 44 of file resource.h.
|
inline |
Returns the role of the GPU data in this resource.
Definition at line 53 of file resource.h.
|
inline |
Returns the size of the resource allocated in the GPU.
Definition at line 57 of file resource.h.
|
protected |
Stores the size of the resource allocated in the GPU.