Navigation
API > API/Runtime > API/Runtime/RHICore > API/Runtime/RHICore/FRHITransientResourceHeapAllocat-
Description
Allocates a buffer on a heap at a specific offset, returning a cached RHI transient buffer pointer, or null if the allocation failed. BufferSize and BufferAlignment are platform specific and must be derived from the buffer create info and passed in, along with a platform-specific buffer creation function if no cached resource if found.
| Name | CreateBufferInternal |
| Type | function |
| Header File | /Engine/Source/Runtime/RHICore/Public/RHICoreTransientResourceAllocator.h |
| Include Path | #include "RHICoreTransientResourceAllocator.h" |
| Source | /Engine/Source/Runtime/RHICore/Private/RHICoreTransientResourceAllocator.cpp |
FRHITransientBuffer * CreateBufferInternal
(
const FRHIBufferCreateInfo & CreateInfo,
const TCHAR * DebugName,
const FRHITransientAllocationFences & Fences,
uint32 BufferSize,
uint32 BufferAlignment,
FRHITransientHeap::FCreateBufferFunction CreateBufferFunction
)