| IRHIComputeContext::RHITransitionResources()
|
Module |
|
Header |
/Engine/Source/Runtime/RHI/Public/RHIContext.h |
Include |
#include "RHIContext.h" |
void RHITransitionResources
(
EResourceTransitionAccess TransitionType,
EResourceTransitionPipeline TransitionPipeline,
FRHIUnorderedAccessView ** InUAVs,
int32 NumUAVs,
FRHIComputeFence * WriteComputeFence
)
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
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 |