A system for dynamically allocating GPU memory for vertices. 更多...
#include <RenderResource.h>
类 | |
| struct | FAllocation |
| Information regarding an allocation from this buffer. 更多... | |
Public 成员函数 | |
| FAllocation | Allocate (uint32 SizeInBytes) |
| Allocates space in the global vertex buffer. 更多... | |
| void | Commit () |
| Commits allocated memory to the GPU. 更多... | |
| FGlobalDynamicVertexBuffer () | |
| Default constructor. | |
| bool | IsRenderAlarmLoggingEnabled () const |
| Returns true if log statements should be made because we exceeded GMaxVertexBytesAllocatedPerFrame | |
| ~FGlobalDynamicVertexBuffer () | |
| Destructor. | |
A system for dynamically allocating GPU memory for vertices.
| 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!