IRHIComputeContext::RHITransitionResources

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

Windows
MacOS
Linux

Override Hierarchy

IRHIComputeContext::RHITransitionResources()

IRHICommandContext::RHITransitionResources()

References

Module

RHI

Header

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

Include

#include "RHIContext.h"

Syntax

void RHITransitionResources
(
    EResourceTransitionAccess TransitionType,
    EResourceTransitionPipeline TransitionPipeline,
    FRHIUnorderedAccessView ** InUAVs,
    int32 NumUAVs,
    FRHIComputeFence * WriteComputeFence
)

Remarks

Explicitly transition a UAV from readable -> writable by the GPU or vice versa. Also explicitly states which pipeline the UAV can be used on next. For example, if a Compute job just wrote this UAV for a Pixel shader to read you would do EResourceTransitionAccess::Readable and EResourceTransitionPipeline::EComputeToGfx

Parameters

Parameter

Description

TransitionType

direction of the transition

EResourceTransitionPipeline

How this UAV is transitioning between Gfx and Compute, if at all.

InUAVs

array of UAV objects to transition

NumUAVs

number of UAVs to transition

WriteComputeFence

Optional ComputeFence to write as part of this 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