FRDGBuilder::PreallocateTexture

For graph-created resources, this forces immediate allocation of the underlying pooled resource, effectively promoting it to an external resource.

Windows
MacOS
Linux

References

Module

RenderCore

Header

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

Include

#include "RenderGraphBuilder.h"

Source

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

Syntax

void PreallocateTexture
(
    FRDGTextureRef Texture
)

Remarks

For graph-created resources, this forces immediate allocation of the underlying pooled resource, effectively promoting it to an external resource. This will increase memory pressure, but allows for querying the pooled resource with GetPooled{Texture, Buffer}. This is primarily used as an aid for porting code incrementally to RDG.

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