Buffer readback implementation.
更多...
#include <RHIGPUReadback.h>
|
| void | EnqueueCopy (FRHICommandList &RHICmdList, FRHIVertexBuffer *SourceBuffer, uint32 NumBytes=0) override |
| | Copy the current state of the resource to the readback data. 更多...
|
| |
| void * | Lock (uint32 NumBytes) override |
| | Returns the CPU accessible pointer that backs this staging buffer. 更多...
|
| |
|
void | Unlock () override |
| | Signals that the host is finished reading from the backing buffer.
|
| |
| virtual void | EnqueueCopy (FRHICommandList &RHICmdList, FRHIVertexBuffer *SourceBuffer, uint32 NumBytes=0) |
| | Copy the current state of the resource to the readback data. 更多...
|
| |
|
FORCEINLINE bool | IsReady () |
| | Indicates if the data is in place and ready to be read.
|
| |
|
FORCEINLINE bool | IsReady (FRHIGPUMask GPUMask) |
| | Indicates if the data is in place and ready to be read on a subset of GPUs.
|
| |
| virtual void * | Lock (uint32 NumBytes)=0 |
| | Returns the CPU accessible pointer that backs this staging buffer. 更多...
|
| |
|
virtual void | Unlock ()=0 |
| | Signals that the host is finished reading from the backing buffer.
|
| |
Buffer readback implementation.
◆ EnqueueCopy()
| void FRHIGPUBufferReadback::EnqueueCopy |
( |
FRHICommandList & |
RHICmdList, |
|
|
FRHIVertexBuffer * |
SourceBuffer, |
|
|
uint32 |
NumBytes = 0 |
|
) |
| |
|
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. |
重载 FRHIGPUMemoryReadback .
◆ Lock()
| void * FRHIGPUBufferReadback::Lock |
( |
uint32 |
NumBytes | ) |
|
|
overridevirtual |
Returns the CPU accessible pointer that backs this staging buffer.
- 参数
-
| NumBytes | The maximum number of bytes the host will read from this pointer. |
- 返回
- A CPU accessible pointer to the backing buffer.
实现了 FRHIGPUMemoryReadback.
该类的文档由以下文件生成: