IRHICommandContext::RHITransitionResources

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

Windows
MacOS
Linux

Override Hierarchy

IRHICommandContext::RHITransitionResources()

FVulkanCommandListContext::RHITransitionResources()

Syntax

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

Remarks

Explicitly transition a texture resource from readable -> writable by the GPU or vice versa. We know rendertargets 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.

Parameters

Parameter

Description

TransitionType

direction of the transition

InTextures

array of texture objects to transition

NumTextures

number of textures to transition

References

Module

RHI

Header

Runtime/RHI/Public/RHIContext.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback