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

#include <blitCmdsOps.h>

Public Member Functions

 HgiBufferCpuToGpuOp ()

Public Attributes

void constcpuSourceBuffer
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 ( )

Definition at line 192 of file blitCmdsOps.h.

Member Data Documentation

size_t HgiBufferCpuToGpuOp::byteSize

Definition at line 204 of file blitCmdsOps.h.

void const* HgiBufferCpuToGpuOp::cpuSourceBuffer

Definition at line 200 of file blitCmdsOps.h.

size_t HgiBufferCpuToGpuOp::destinationByteOffset

Definition at line 203 of file blitCmdsOps.h.

HgiBufferHandle HgiBufferCpuToGpuOp::gpuDestinationBuffer

Definition at line 202 of file blitCmdsOps.h.

size_t HgiBufferCpuToGpuOp::sourceByteOffset

Definition at line 201 of file blitCmdsOps.h.

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