![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <RHIGPUReadback.h>
Inheritance diagram for FRHIGPUMemoryReadback:Public Member Functions | |
| FRHIGPUMemoryReadback (FName RequestName) | |
| virtual | ~FRHIGPUMemoryReadback () |
| bool | IsReady () |
| bool | IsReady (FRHIGPUMask GPUMask) |
| void | Wait (FRHICommandListImmediate &RHICmdList, FRHIGPUMask GPUMask) const |
| virtual void | EnqueueCopy (FRHICommandList &RHICmdList, FRHIBuffer *SourceBuffer, uint32 NumBytes=0) |
| virtual void | EnqueueCopy (FRHICommandList &RHICmdList, FRHITexture *SourceTexture, const FIntVector &SourcePosition, uint32 SourceSlice, const FIntVector &Size) |
| void | EnqueueCopy (FRHICommandList &RHICmdList, FRHITexture *SourceTexture, FResolveRect Rect=FResolveRect(), uint32 SourceSlice=0) |
| virtual void * | Lock (uint32 NumBytes)=0 |
| virtual void | Unlock ()=0 |
| const FRHIGPUMask & | GetLastCopyGPUMask () const |
| FName | GetName () const |
Protected Attributes | |
| FGPUFenceRHIRef | Fence |
| FRHIGPUMask | LastCopyGPUMask |
| uint32 | LastLockGPUIndex |
FRHIGPUMemoryReadback: Represents a memory readback request scheduled with CopyToStagingBuffer Wraps a staging buffer with a FRHIGPUFence for synchronization.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Copy the current state of the resource to the readback data.
| RHICmdList | The command list to enqueue the copy request on. |
| SourceBuffer | The buffer holding the source data. |
| NumBytes | The number of bytes to copy. If 0, this will copy the entire buffer. |
Reimplemented in FRHIGPUTextureReadback, and FRHIGPUBufferReadback.
|
inlinevirtual |
Reimplemented in FRHIGPUTextureReadback, and FRHIGPUTextureReadback.
|
inline |
|
inline |
|
inline |
|
inline |
Indicates if the data is in place and ready to be read.
|
inline |
Indicates if the data is in place and ready to be read on a subset of GPUs.
Returns the CPU accessible pointer that backs this staging buffer.
| NumBytes | The maximum number of bytes the host will read from this pointer. |
Implemented in FRHIGPUBufferReadback, and FRHIGPUTextureReadback.
Signals that the host is finished reading from the backing buffer.
Implemented in FRHIGPUBufferReadback, and FRHIGPUTextureReadback.
|
inline |
|
protected |
|
protected |
|
protected |