24 #ifndef PXR_IMAGING_HD_ST_BUFFER_UTILS_H
25 #define PXR_IMAGING_HD_ST_BUFFER_UTILS_H
57 _srcBuffer(srcBuffer), _dstBuffer(dstBuffer) {}
72 _CopyUnit(ptrdiff_t read, ptrdiff_t write, ptrdiff_t
size)
75 bool Concat(_CopyUnit
const &next) {
76 if (
readOffset + copySize == next.readOffset &&
78 copySize += next.copySize;
89 std::vector<_CopyUnit> _queue;
97 #endif // PXR_IMAGING_HD_ST_GL_UTILS_H
HDST_API void AddRange(ptrdiff_t readOffset, ptrdiff_t writeOffset, ptrdiff_t copySize)
GLenum GLintptr GLintptr writeOffset
HDST_API VtValue HdStReadBuffer(HgiBufferHandle const &buffer, HdTupleType tupleType, int offset, int stride, int numElements, int elementStride, HdStResourceRegistry *resourceRegistry)
GLint GLenum GLboolean GLsizei stride
HDST_API void Commit(class HgiBlitCmds *blitCmds)
Execute Hgi buffer copy command to flush all scheduled range copies.
GLenum GLintptr readOffset
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
HdStBufferRelocator(HgiBufferHandle const &srcBuffer, HgiBufferHandle const &dstBuffer)