A system for dynamically allocating GPU memory for indices.
更多...
#include <RenderResource.h>
|
| struct | FAllocation |
| | Information regarding an allocation from this buffer. 更多...
|
| |
| struct | FAllocationEx |
| | Information data with usage details to avoid passing around parameters. 更多...
|
| |
|
| template<typename IndexType > |
| FORCEINLINE FAllocationEx | Allocate (uint32 NumIndices) |
| | Helper function to allocate. 更多...
|
| |
| FAllocation | Allocate (uint32 NumIndices, uint32 IndexStride) |
| | Allocates space in the global index buffer. 更多...
|
| |
| void | Commit () |
| | Commits allocated memory to the GPU. 更多...
|
| |
|
| FGlobalDynamicIndexBuffer () |
| | Default constructor.
|
| |
|
| ~FGlobalDynamicIndexBuffer () |
| | Destructor.
|
| |
A system for dynamically allocating GPU memory for indices.
◆ Allocate() [1/2]
template<typename IndexType >
| FORCEINLINE FAllocationEx FGlobalDynamicIndexBuffer::Allocate |
( |
uint32 |
NumIndices | ) |
|
|
inline |
Helper function to allocate.
- 参数
-
| NumIndices | - The number of indices to allocate. |
- 返回
- an FAllocation with information regarding the allocated memory.
◆ Allocate() [2/2]
| 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). |
- 返回
- An FAllocation with information regarding the allocated memory.
◆ Commit()
| 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!
该类的文档由以下文件生成: