![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GlobalRenderResources.h>
Public Types | |
| using | FAllocation = FGlobalDynamicIndexBufferAllocation |
| using | FAllocationEx = FGlobalDynamicIndexBufferAllocationEx |
Public Member Functions | |
| FGlobalDynamicIndexBuffer ()=default | |
| FGlobalDynamicIndexBuffer (FRHICommandListBase &InRHICmdList) | |
| ~FGlobalDynamicIndexBuffer () | |
| void | Init (FRHICommandListBase &InRHICmdList) |
| RENDERCORE_API FAllocation | Allocate (uint32 NumIndices, uint32 IndexStride) |
| template<typename IndexType > | |
| FAllocationEx | Allocate (uint32 NumIndices) |
| RENDERCORE_API void | Commit () |
A system for dynamically allocating GPU memory for indices.
|
default |
|
inline |
|
inline |
|
inline |
Helper function to allocate.
| NumIndices | - The number of indices to allocate. |
| FGlobalDynamicIndexBuffer::FAllocation FGlobalDynamicIndexBuffer::Allocate | ( | uint32 | NumIndices, |
| uint32 | IndexStride | ||
| ) |
Allocates space in the global index buffer.
| NumIndices | - The number of indices to allocate. |
| IndexStride | - The size of an index (2 or 4 bytes). |
| void FGlobalDynamicIndexBuffer::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 |