Navigation
API > API/Runtime > API/Runtime/RHI
References
| Module | RHI |
| Header | /Engine/Source/Runtime/RHI/Public/RHIContext.h |
| Include | #include "RHIContext.h" |
Syntax
struct FTransferResourceParams
Remarks
Parameters for RHITransferResources, used to copy memory between GPUs
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bLockStepGPUs | Whether the GPUs must handshake before and after the transfer. | |
| bool | bPullData | Whether the data is read by the dest GPU, or written by the src GPU (not allowed if the texture is a backbuffer) | |
| FBufferRHIRef | Buffer | Or alternately, a buffer that's allocated on both GPUs. | |
| FTransferResourceFenceData * | DelayedFence | Optional pointer where fence data can be written if you want to delay waiting on the GPU fence for a resource transfer. | |
| uint32 | DestGPUIndex | The GPU index where the data will be written to. | |
| FIntVector | Max | The max rect of the texture region to copy. | |
| FIntVector | Min | The min rect of the texture region to copy. | |
| FTransferResourceFenceData * | PreTransferFence | Optional pointer to a fence to wait on before starting the transfer. | |
| uint32 | SrcGPUIndex | The GPU index where the data will be read from. | |
| FTextureRHIRef | Texture | The texture which must be must be allocated on both GPUs. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTransferResourceParams
(
FRHITexture* InTexture, |
|||
FTransferResourceParams
(
FRHIBuffer* InBuffer, |
|||
FTransferResourceParams
(
FRHITexture2D* InTexture, |