![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GlobalRenderResources.h>
Public Types | |
| using | FAllocation = FGlobalDynamicVertexBufferAllocation |
Public Member Functions | |
| FGlobalDynamicVertexBuffer ()=default | |
| FGlobalDynamicVertexBuffer (FRHICommandListBase &InRHICmdList) | |
| ~FGlobalDynamicVertexBuffer () | |
| void | Init (FRHICommandListBase &InRHICmdList) |
| RENDERCORE_API FAllocation | Allocate (uint32 SizeInBytes) |
| RENDERCORE_API void | Commit () |
| void | GarbageCollect () |
| RENDERCORE_API bool | IsRenderAlarmLoggingEnabled () const |
A system for dynamically allocating GPU memory for vertices.
|
default |
|
inline |
|
inline |
| FGlobalDynamicVertexBuffer::FAllocation FGlobalDynamicVertexBuffer::Allocate | ( | uint32 | SizeInBytes | ) |
Allocates space in the global vertex buffer.
| SizeInBytes | - The amount of memory to allocate in bytes. |
| void FGlobalDynamicVertexBuffer::Commit | ( | ) |
Commits allocated memory to the GPU. WARNING: Once this buffer has been committed to the GPU, allocations remain valid only until the next call to Allocate!
|
inline |
|
inline |
| bool FGlobalDynamicVertexBuffer::IsRenderAlarmLoggingEnabled | ( | ) | const |
Returns true if log statements should be made because we exceeded GMaxVertexBytesAllocatedPerFrame