IRHICommandContext::RHITransitionResources

Override Hierarchy

Syntax

virtual void RHITransitionResources
(
    EResourceTransitionAccess TransitionType,
    EResourceTransitionPipeline TransitionPipeline,
    FUnorderedAccessViewRHIParamRef * InUAVs,
    int32 NumUAVs,
    FComputeFenceRHIParamRef 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

References

Module

RHI

Header

Runtime/RHI/Public/RHIContext.h