Navigation
API > API/Plugins > API/Plugins/OptimusCore > API/Plugins/OptimusCore/FOptimusPersistentBufferPool
Description
Get or allocate buffers for the given resource If the buffer already exists but has different sizing characteristics the allocation fails. The number of buffers will equal the size of the InElementCount array. But if the allocation fails, the returned array will be empty.
| Name | GetResourceBuffers |
| Type | function |
| Header File | /Engine/Plugins/Animation/DeformerGraph/Source/OptimusCore/Public/OptimusDeformerInstance.h |
| Include Path | #include "OptimusDeformerInstance.h" |
| Source | /Engine/Plugins/Animation/DeformerGraph/Source/OptimusCore/Private/OptimusDeformerInstance.cpp |
void GetResourceBuffers
(
FRDGBuilder & GraphBuilder,
FName InResourceName,
int32 InLODIndex,
int32 InElementStride,
int32 InRawStride,
TArray < int32 > const & InElementCounts,
TArray < FRDGBuffer * > & OutBuffers,
bool & bOutJustAllocated
)