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

#include <persistentBuffer.h>

+ Inheritance diagram for HdStPersistentBuffer:

Public Member Functions

HDST_API HdStPersistentBuffer (Hgi *hgi, TfToken const &role, size_t dataSize, void *data)
HDST_API ~HdStPersistentBuffer ()
HgiBufferHandle constGetBuffer () const
 Returns the mapped address. More...
- Public Member Functions inherited from HdResource
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...

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 48 of file persistentBuffer.h.

Constructor & Destructor Documentation

HDST_API HdStPersistentBuffer::HdStPersistentBuffer ( Hgi hgi,
TfToken const role,
size_t  dataSize,
void data 
HDST_API HdStPersistentBuffer::~HdStPersistentBuffer ( )

Member Function Documentation

HgiBufferHandle const& HdStPersistentBuffer::GetBuffer ( ) const

Returns the mapped address.

Definition at line 57 of file persistentBuffer.h.

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