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

#include <resource.h>

+ Inheritance diagram for HdResource:

Public Member Functions

HD_API HdResource (TfToken const &role)
 
virtual HD_API ~HdResource ()
 
TfToken constGetRole () 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.

Constructor & Destructor Documentation

HD_API HdResource::HdResource ( TfToken const role)
virtual HD_API HdResource::~HdResource ( )
virtual

Member Function Documentation

TfToken const& HdResource::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 HdResource::GetSize ( ) const
inline

Returns the size of the resource allocated in the GPU.

Definition at line 57 of file resource.h.

HD_API void HdResource::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: