CacheRenderTarget

Creates an untracked pooled render target from the RHI texture, but only if the pooled render target is empty or doesn't match the input texture.

Windows
MacOS
Linux

References

Module

RenderCore

Header

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

Include

#include "RendererInterface.h"

Source

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

Syntax

bool CacheRenderTarget
(
    FRHITexture * Texture,
    const TCHAR * Name,
    TRefCountPtr< IPooledRenderTarget > & OutPooledRenderTarget
)

Remarks

Creates an untracked pooled render target from the RHI texture, but only if the pooled render target is empty or doesn't match the input texture. If the pointer already exists and points at the input texture, the function just returns. Useful to cache a pooled render target for an RHI texture. Returns true if the render target was created, or false if it was reused.

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