HDK
 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.
  • insert the appropriate barriers in the command buffer prior to reading/writing to/from the resources.
  • 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 162 of file blitCmdsOps.h.

Constructor & Destructor Documentation

HgiBufferCpuToGpuOp::HgiBufferCpuToGpuOp ( )
inline

Definition at line 164 of file blitCmdsOps.h.

Member Data Documentation

size_t HgiBufferCpuToGpuOp::byteSize

Definition at line 176 of file blitCmdsOps.h.

void const* HgiBufferCpuToGpuOp::cpuSourceBuffer

Definition at line 172 of file blitCmdsOps.h.

size_t HgiBufferCpuToGpuOp::destinationByteOffset

Definition at line 175 of file blitCmdsOps.h.

HgiBufferHandle HgiBufferCpuToGpuOp::gpuDestinationBuffer

Definition at line 174 of file blitCmdsOps.h.

size_t HgiBufferCpuToGpuOp::sourceByteOffset

Definition at line 173 of file blitCmdsOps.h.


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