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

Base class for all GPU resource objects. More...

+ Inheritance diagram for HdResource:

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...
 

Detailed Description

Base class for all GPU resource objects.

Definition at line 44 of file resource.h.

Member Function Documentation

TfToken const& GetRole ( ) const
inline

Returns the role of the GPU data in this resource.

Definition at line 53 of file resource.h.

HD_API size_t GetSize ( ) const
inline

Returns the size of the resource allocated in the GPU.

Definition at line 57 of file resource.h.

HD_API void SetSize ( size_t  size)
protected

Stores the size of the resource allocated in the GPU.


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