目录

ResourceAllocator

Class Info

class ResourceAllocator

资源分配器类,用于分配FrameGraph中的资源对象并初始化。

Public Destructor Summary

Destructor Name

~ResourceAllocator()

析构函数。

Public Method Summary

Qualifier and Type

Method Name and Description

ResourceHandle

Allocate(const ResourceInfo& info, GraphicsRenderer* graphicsRenderer)

分配资源。

void

Free(ResourceHandle& resHandle)

释放资源。

void

Update()

更新资源。

Public Destructors

[h2]~ResourceAllocator

Destructor

~ResourceAllocator()

析构函数。

Public Methods

[h2]Allocate

Method

ResourceHandle Allocate(const ResourceInfo& info, GraphicsRenderer* graphicsRenderer)

分配资源。

Parameters

Name

Description

info

资源信息。

graphicsRenderer

图形渲染器。

Returns

Type

Description

ResourceHandle

资源句柄。

[h2]Free

Method

void Free(ResourceHandle& resHandle)

释放资源。

Parameters

Name

Description

resHandle

资源句柄。

[h2]Update

Method

void Update()

更新资源。