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

A buffer used to prepare data on the GPU that has a persistent mapping from the CPU. More...

+ Inheritance diagram for HdStPersistentBuffer:

Public Member Functions

HDST_API HdStPersistentBuffer (TfToken const &role, size_t dataSize, void *data)
 
void * GetMappedAddress () const
 Returns the mapped address. More...
 
- Public Member Functions inherited from HdStResourceGL
HDST_API HdStResourceGL (TfToken const &role)
 
virtual HDST_API void SetAllocation (GLuint id, size_t size)
 The OpenGL name/identifier for this resource and its size. More...
 
GLuint GetId () const
 Returns the id of the GPU resource. More...
 
- Public Member Functions inherited from HdResource
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...
 

Additional Inherited Members

- Protected Member Functions inherited from HdResource
HD_API void SetSize (size_t size)
 Stores the size of the resource allocated in the GPU. More...
 

Detailed Description

A buffer used to prepare data on the GPU that has a persistent mapping from the CPU.

Definition at line 44 of file persistentBuffer.h.

Member Function Documentation

void* GetMappedAddress ( ) const
inline

Returns the mapped address.

Definition at line 52 of file persistentBuffer.h.


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