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

#include <glUtils.h>

Public Member Functions

 HdStGLBufferRelocator (HgiBufferHandle const &srcBuffer, HgiBufferHandle const &dstBuffer)
 
HDST_API void AddRange (ptrdiff_t readOffset, ptrdiff_t writeOffset, ptrdiff_t copySize)
 
HDST_API void Commit (class Hgi *hgi)
 Execute Hgi buffer copy command to flush all scheduled range copies. More...
 

Detailed Description

A utility class to perform batched buffer copy.

Definition at line 69 of file glUtils.h.

Constructor & Destructor Documentation

HdStGLBufferRelocator::HdStGLBufferRelocator ( HgiBufferHandle const srcBuffer,
HgiBufferHandle const dstBuffer 
)
inline

Definition at line 71 of file glUtils.h.

Member Function Documentation

HDST_API void HdStGLBufferRelocator::AddRange ( ptrdiff_t  readOffset,
ptrdiff_t  writeOffset,
ptrdiff_t  copySize 
)

Schedule the range to be copied. The consecutive ranges could be aggregated into a single copy where possible.

HDST_API void HdStGLBufferRelocator::Commit ( class Hgi hgi)

Execute Hgi buffer copy command to flush all scheduled range copies.


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