AddClearDepthStencilPass

Adds a render graph pass to clear a depth stencil 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 AddClearDepthStencilPass
(
    FRDGBuilder & GraphBuilder,
    FRDGTextureRef Texture,
    bool bClearDepth,
    float Depth,
    bool bClearStencil,
    uint8 Stencil
)

Remarks

Adds a render graph pass to clear a depth stencil 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