engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FRHIGPUMemoryReadback类 参考abstract

FRHIGPUMemoryReadback: Represents a memory readback request scheduled with CopyToStagingBuffer Wraps a staging buffer with a FRHIGPUFence for synchronization. 更多...

#include <RHIGPUReadback.h>

+ 类 FRHIGPUMemoryReadback 继承关系图:

Public 成员函数

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.
 

详细描述

FRHIGPUMemoryReadback: Represents a memory readback request scheduled with CopyToStagingBuffer Wraps a staging buffer with a FRHIGPUFence for synchronization.

成员函数说明

◆ EnqueueCopy()

virtual void FRHIGPUMemoryReadback::EnqueueCopy ( FRHICommandList &  RHICmdList,
FRHIVertexBuffer *  SourceBuffer,
uint32  NumBytes = 0 
)
inlinevirtual

Copy the current state of the resource to the readback data.

参数
RHICmdListThe command list to enqueue the copy request on.
SourceBufferThe buffer holding the source data.
NumBytesThe number of bytes to copy. If 0, this will copy the entire buffer.

被 FRHIGPUBufferReadback 重载.

◆ Lock()

virtual void * FRHIGPUMemoryReadback::Lock ( uint32  NumBytes)
pure virtual

Returns the CPU accessible pointer that backs this staging buffer.

参数
NumBytesThe maximum number of bytes the host will read from this pointer.
返回
A CPU accessible pointer to the backing buffer.

在 FRHIGPUBufferReadback , 以及 FRHIGPUTextureReadback 内被实现.


该类的文档由以下文件生成: