IRHICommandContext::RHITransitionResources

Explicitly transition a texture resource from readable -> writable by the GPU or vice versa.

Windows
MacOS
Linux

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/RHIContext.h

Include

#include "RHIContext.h"

Syntax

virtual void RHITransitionResources
(
    EResourceTransitionAccess TransitionType,
    FRHITexture ** InTextures,
    int32 NumTextures
)

Remarks

Explicitly transition a texture resource from readable -> writable by the GPU or vice versa. We know render targets are only used as rendered targets on the Gfx pipeline, so these transitions are assumed to be implemented such Gfx->Gfx and Gfx->Compute pipeline transitions are both handled by this call by the RHI implementation. Hence, no pipeline parameter on this call. TransitionPipeline version is also available to transition from Compute->Gfx for example

Parameters

Parameter

Description

TransitionType

direction of the transition

InTextures

array of texture objects to transition

NumTextures

number of textures to transition

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss