Loading...
Searching...
No Matches
HdStBufferRelocator Class Reference

A utility class to perform batched buffer copy. More...

#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)
 Schedule the range to be copied.
 
HDST_API void Commit (class HgiBlitCmds *blitCmds)
 Execute Hgi buffer copy command to flush all scheduled range copies.
 

Detailed Description

A utility class to perform batched buffer copy.

Definition at line 36 of file bufferUtils.h.

Constructor & Destructor Documentation

◆ HdStBufferRelocator()

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

Definition at line 38 of file bufferUtils.h.

Member Function Documentation

◆ AddRange()

HDST_API void 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.

◆ Commit()

HDST_API void 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: