GetPooledFreeBuffer

Allocates an RDG pooled buffer instance. Attempts to reuse allocation if Out has a value. Returns true a new instance was allocated, or false if the existing allocation was reused.

Choose your operating system:

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

bool GetPooledFreeBuffer
(
    FRHICommandList & RHICmdList,
    const FRDGBufferDesc & Desc,
    TRefCountPtr< FRDGPooledBuffer > & Out,
    const TCHAR * InDebugName
)

Remarks

Allocates an RDG pooled buffer instance. Attempts to reuse allocation if Out has a value. Returns true a new instance was allocated, or false if the existing allocation was reused.