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

#include <glUtils.h>

Public Member Functions

 HdStBufferRelocator (HgiBufferHandle const &srcBuffer, HgiBufferHandle const &dstBuffer)
 
HDST_API void AddRange (ptrdiff_t readOffset, ptrdiff_t writeOffset, ptrdiff_t copySize)
 
HDST_API void Commit (class HgiBlitCmds *blitCmds)
 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 53 of file glUtils.h.

Constructor & Destructor Documentation

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

Definition at line 55 of file glUtils.h.

Member Function Documentation

HDST_API void HdStBufferRelocator::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 HdStBufferRelocator::Commit ( class HgiBlitCmds blitCmds)

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


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