AddClearRenderTargetPass

Adds a render graph pass to clear a render target. Prefer to use clear actions if possible.

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. Prefer to use clear actions if possible.

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