Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/IRHIComputeContext
Description
Performs a copy of the data in 'SourceBuffer' to 'DestinationStagingBuffer.' This will occur inline on the GPU timeline. This is a mechanism to perform nonblocking readback of a buffer at a point in time.
| Name | RHICopyToStagingBuffer |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/RHIContext.h |
| Include Path | #include "RHIContext.h" |
virtual void RHICopyToStagingBuffer
(
FRHIBuffer * SourceBufferRHI,
FRHIStagingBuffer * DestinationStagingBufferRHI,
uint32 InOffset,
uint32 InNumBytes
)
Parameters
| Name | Remarks |
|---|---|
| SourceBuffer | The source vertex buffer that will be inlined copied. |
| DestinationStagingBuffer | The the host-visible destination buffer |
| Offset | The start of the data in 'SourceBuffer' |
| NumBytes | The number of bytes to copy out of 'SourceBuffer' |