|
HDK
|
#include <bufferUtils.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... | |
A utility class to perform batched buffer copy.
Definition at line 36 of file bufferUtils.h.
|
inline |
Definition at line 38 of file bufferUtils.h.
| 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.