载入中...
搜索中...
未找到
eve::gpuagents::EffectBackend类 参考

Binds an EffectProfile to a GpuAgentSimulation and optional renderer. 更多...

#include <EffectBackend.h>

Public 成员函数

 EffectBackend ()=default
 Effect backend.
 
Result< void > configure (const EffectProfile &profile, std::string displayName={})
 Configure from a profile and initialize empty capacity.
 
GpuAgentSimulation & simulation ()
 Owned simulation.
 
const GpuAgentSimulation & simulation () const
 Const simulation.
 
AgentInstanceRenderer & renderer ()
 Instance renderer packing transforms from current states.
 
const AgentInstanceRenderer & renderer () const
 Const renderer.
 
const std::string & name () const
 Debug / registry name.
 
EffectKind kind () const
 Active effect kind.
 
Result< void > step (float dt, const EnvironmentSnapshot &env)
 Advance simulation then refresh instance buffers.
 
void reset ()
 Reset simulation agents.
 

详细描述

Binds an EffectProfile to a GpuAgentSimulation and optional renderer.

Profile is data-only; Backend owns the live simulation and exposes step/reset.

在文件 EffectBackend.h 第 19 行定义.

构造及析构函数说明

◆ EffectBackend()

eve::gpuagents::EffectBackend::EffectBackend ( )
default

Effect backend.

成员函数说明

◆ configure()

Result< void > eve::gpuagents::EffectBackend::configure ( const EffectProfile &  profile,
std::string  displayName = {} 
)

Configure from a profile and initialize empty capacity.

参数
profileEffect parameters.
displayNameOptional debug label.

在文件 EffectBackend.cpp 第 7 行定义.

引用了 eve::gpuagents::GpuAgentSimulation::configure(), eve::gpuagents::GpuAgentSimulation::states(), eve::Result< T >::success() , 以及 eve::gpuagents::AgentInstanceRenderer::sync().

被这些函数引用 eve::gpuagents_editing::GpuAgentsRuntimeApplier::apply().

◆ kind()

EffectKind eve::gpuagents::EffectBackend::kind ( ) const
inline

Active effect kind.

在文件 EffectBackend.h 第 46 行定义.

被这些函数引用 eve::gpuagents::GpuAgents::spawnCloud().

◆ name()

const std::string & eve::gpuagents::EffectBackend::name ( ) const
inline

Debug / registry name.

在文件 EffectBackend.h 第 43 行定义.

◆ renderer() [1/2]

AgentInstanceRenderer & eve::gpuagents::EffectBackend::renderer ( )
inline

Instance renderer packing transforms from current states.

在文件 EffectBackend.h 第 38 行定义.

◆ renderer() [2/2]

const AgentInstanceRenderer & eve::gpuagents::EffectBackend::renderer ( ) const
inline

Const renderer.

在文件 EffectBackend.h 第 40 行定义.

◆ reset()

void eve::gpuagents::EffectBackend::reset ( )
inline

Reset simulation agents.

在文件 EffectBackend.h 第 56 行定义.

◆ simulation() [1/2]

GpuAgentSimulation & eve::gpuagents::EffectBackend::simulation ( )
inline

Owned simulation.

在文件 EffectBackend.h 第 33 行定义.

被这些函数引用 eve::gpuagents::GpuAgents::spawnCloud().

◆ simulation() [2/2]

const GpuAgentSimulation & eve::gpuagents::EffectBackend::simulation ( ) const
inline

Const simulation.

在文件 EffectBackend.h 第 35 行定义.

◆ step()

Result< void > eve::gpuagents::EffectBackend::step ( float  dt,
const EnvironmentSnapshot &  env 
)

Advance simulation then refresh instance buffers.

参数
dtFrame delta.
envEnvironment snapshot.

在文件 EffectBackend.cpp 第 15 行定义.

引用了 eve::gpuagents::GpuAgentSimulation::states(), eve::gpuagents::GpuAgentSimulation::step(), eve::Result< T >::success() , 以及 eve::gpuagents::AgentInstanceRenderer::sync().


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