Navigation
API > API/Runtime > API/Runtime/RenderCore
Description
Helper to create a structured upload buffer with initial data from a TArray. NOTE: does not provide a 1-size fallback for empty initial data.
| Name | CreateStructuredUploadBuffer |
| Type | function |
| Header File | /Engine/Source/Runtime/RenderCore/Public/RenderGraphUtils.h |
| Include Path | #include "RenderGraphUtils.h" |
template<typename ElementType, typename AllocatorType>
FRDGBufferRef CreateStructuredUploadBuffer
(
FRDGBuilder & GraphBuilder,
const TCHAR * Name,
const TArray < ElementType, AllocatorType > & InitialData,
ERDGInitialDataFlags InitialDataFlags
)