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

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

Public Attributes

void const * cpuSourceBuffer
 
size_t sourceByteOffset
 
HgiBufferHandle gpuDestinationBuffer
 
size_t destinationByteOffset
 
size_t byteSize
 

Detailed Description

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

It is the responsibility of the caller to:

  • ensure the destination buffer is large enough to receive the data.
  • ensure the source buffer and destination buffer are valid at the time the command is executed.
  • cpuSourceBuffer: Pointer to CPU source to copy the data from.
  • sourceByteOffset: The byte location in cpuSourceBuffer where copying starts.
  • gpuDestinationBuffer: The GPU buffer to copy the data into.
  • destinationByteOffset: The byte location in gpuDestinationBuffer where copying starts.
  • byteSize: The size in bytes to copy.

Definition at line 190 of file blitCmdsOps.h.


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