All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HgiBufferGpuToGpuOp Struct Reference

Describes the properties needed to copy buffer data from GPU to GPU. More...

Public Attributes

HgiBufferHandle gpuSourceBuffer
 
size_t sourceByteOffset
 
size_t byteSize
 
HgiBufferHandle gpuDestinationBuffer
 
size_t destinationByteOffset
 

Detailed Description

Describes the properties needed to copy buffer data from GPU to GPU.

It is the responsibility of the caller to:

  • ensure the destination buffer is large enough to receive the data (keep in mind the destinationByteOffset).
  • ensure the source buffer and destination buffer are valid at the time the command is executed.
  • gpuSourceBuffer: The gpu buffer to copy data from.
  • sourceByteOffset: The byte offset in source buffer to start copying the data from.
  • byteSize: Size of the data (in bytes) to copy
  • gpuDestinationBuffer: The copy destination gpu buffer.
  • destinationByteOffset: The byte offset in destination buffer where to start copying the data to.

Definition at line 150 of file blitCmdsOps.h.


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