载入中...
搜索中...
未找到
eve::gpgpu::EcsGpuWorkspace< Comp > 模板类 参考

Reusable typed CPU staging for a GPU ECS component stream. Ownership stays with the caller; one workspace must not be used concurrently. 更多...

#include <EcsGpu.h>

Public 成员函数

void reserveEntities (int entityCount)
 Reserve staging storage for at least entityCount components.
 
size_t entityCapacity () const
 Current allocated staging capacity expressed as entity records.
 

友元

template<typename Base , typename C >
int packViewComponent (ShaderSystem &, int, EcsGpuWorkspace< C > &)
 
template<typename Base , typename C >
int packViewComponentRange (ShaderSystem &, int, int, int, EcsGpuWorkspace< C > &)
 
template<typename Base , typename C >
void unpackViewComponent (ShaderSystem &, int, int, EcsGpuWorkspace< C > &)
 
template<typename Base , typename C >
int unpackViewComponentRange (ShaderSystem &, int, int, int, EcsGpuWorkspace< C > &)
 

详细描述

template<typename Comp>
class eve::gpgpu::EcsGpuWorkspace< Comp >

Reusable typed CPU staging for a GPU ECS component stream. Ownership stays with the caller; one workspace must not be used concurrently.

EcsGpuWorkspace public API.

在文件 EcsGpu.h 第 24 行定义.

成员函数说明

◆ entityCapacity()

template<typename Comp >
size_t eve::gpgpu::EcsGpuWorkspace< Comp >::entityCapacity ( ) const
inline

Current allocated staging capacity expressed as entity records.

在文件 EcsGpu.h 第 36 行定义.

◆ reserveEntities()

template<typename Comp >
void eve::gpgpu::EcsGpuWorkspace< Comp >::reserveEntities ( int  entityCount)
inline

Reserve staging storage for at least entityCount components.

在文件 EcsGpu.h 第 31 行定义.

友元及相关函数文档

◆ packViewComponent

template<typename Comp >
template<typename Base , typename C >
int packViewComponent ( ShaderSystem &  ,
int  ,
EcsGpuWorkspace< C > &   
)
friend

◆ packViewComponentRange

template<typename Comp >
template<typename Base , typename C >
int packViewComponentRange ( ShaderSystem &  ,
int  ,
int  ,
int  ,
EcsGpuWorkspace< C > &   
)
friend

◆ unpackViewComponent

template<typename Comp >
template<typename Base , typename C >
void unpackViewComponent ( ShaderSystem &  ,
int  ,
int  ,
EcsGpuWorkspace< C > &   
)
friend

◆ unpackViewComponentRange

template<typename Comp >
template<typename Base , typename C >
int unpackViewComponentRange ( ShaderSystem &  ,
int  ,
int  ,
int  ,
EcsGpuWorkspace< C > &   
)
friend

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