engine
 
载入中...
搜索中...
未找到
类 | Public 成员函数 | 所有成员列表
FGlobalDynamicVertexBuffer类 参考

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.

成员函数说明

◆ Allocate()

FAllocation FGlobalDynamicVertexBuffer::Allocate ( uint32  SizeInBytes)

Allocates space in the global vertex buffer.

参数
SizeInBytes- The amount of memory to allocate in bytes.
返回
An FAllocation with information regarding the allocated memory.

◆ Commit()

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!


该类的文档由以下文件生成: