Loading...
Searching...
No Matches
HgiBufferCpuToGpuOp Struct Reference

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

#include <blitCmdsOps.h>

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.

Constructor & Destructor Documentation

◆ HgiBufferCpuToGpuOp()

HgiBufferCpuToGpuOp ( )
inline

Definition at line 192 of file blitCmdsOps.h.

Member Data Documentation

◆ byteSize

size_t byteSize

Definition at line 204 of file blitCmdsOps.h.

◆ cpuSourceBuffer

void const* cpuSourceBuffer

Definition at line 200 of file blitCmdsOps.h.

◆ destinationByteOffset

size_t destinationByteOffset

Definition at line 203 of file blitCmdsOps.h.

◆ gpuDestinationBuffer

HgiBufferHandle gpuDestinationBuffer

Definition at line 202 of file blitCmdsOps.h.

◆ sourceByteOffset

size_t sourceByteOffset

Definition at line 201 of file blitCmdsOps.h.


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