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