AddClearRenderTargetPass

Adds a render graph pass to clear a render target.

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/RenderGraphUtils.h

Include

#include "RenderGraphUtils.h"

Source

/Engine/Source/Runtime/RenderCore/Private/RenderGraphUtils.cpp

Syntax

void AddClearRenderTargetPass
(
    FRDGBuilder & GraphBuilder,
    FRDGTextureRef Texture,
    const FLinearColor & ClearColor
)

Remarks

Adds a render graph pass to clear a render target. Uses render pass clear actions if the clear color matches the fast clear color.

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