![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <RHIGPUReadback.h>
Inheritance diagram for FRHIGPUBufferReadback:Public Member Functions | |
| RHI_API | FRHIGPUBufferReadback (FName RequestName) |
| RHI_API void | EnqueueCopy (FRHICommandList &RHICmdList, FRHIBuffer *SourceBuffer, uint32 NumBytes=0) override |
| RHI_API void * | Lock (uint32 NumBytes) override |
| RHI_API void | Unlock () override |
| RHI_API uint64 | GetGPUSizeBytes () const |
Public Member Functions inherited from FRHIGPUMemoryReadback | |
| FRHIGPUMemoryReadback (FName RequestName) | |
| virtual | ~FRHIGPUMemoryReadback () |
| bool | IsReady () |
| bool | IsReady (FRHIGPUMask GPUMask) |
| void | Wait (FRHICommandListImmediate &RHICmdList, FRHIGPUMask GPUMask) const |
| 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) |
| const FRHIGPUMask & | GetLastCopyGPUMask () const |
| FName | GetName () const |
Additional Inherited Members | |
Protected Attributes inherited from FRHIGPUMemoryReadback | |
| FGPUFenceRHIRef | Fence |
| FRHIGPUMask | LastCopyGPUMask |
| uint32 | LastLockGPUIndex |
Buffer readback implementation.
| FRHIGPUBufferReadback::FRHIGPUBufferReadback | ( | FName | RequestName | ) |
|
overridevirtual |
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 from FRHIGPUMemoryReadback.
| uint64 FRHIGPUBufferReadback::GetGPUSizeBytes | ( | ) | const |
Returns the CPU accessible pointer that backs this staging buffer.
| NumBytes | The maximum number of bytes the host will read from this pointer. |
Implements FRHIGPUMemoryReadback.
|
overridevirtual |
Signals that the host is finished reading from the backing buffer.
Implements FRHIGPUMemoryReadback.