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()
|
default |
Effect backend.
成员函数说明
◆ configure()
| Result< void > eve::gpuagents::EffectBackend::configure | ( | const EffectProfile & | profile, |
| std::string | displayName = {} |
||
| ) |
Configure from a profile and initialize empty capacity.
- 参数
-
profile Effect parameters. displayName Optional 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()
|
inline |
◆ name()
|
inline |
Debug / registry name.
在文件 EffectBackend.h 第 43 行定义.
◆ renderer() [1/2]
|
inline |
Instance renderer packing transforms from current states.
在文件 EffectBackend.h 第 38 行定义.
◆ renderer() [2/2]
|
inline |
Const renderer.
在文件 EffectBackend.h 第 40 行定义.
◆ reset()
|
inline |
Reset simulation agents.
在文件 EffectBackend.h 第 56 行定义.
◆ simulation() [1/2]
|
inline |
◆ simulation() [2/2]
|
inline |
Const simulation.
在文件 EffectBackend.h 第 35 行定义.
◆ step()
| Result< void > eve::gpuagents::EffectBackend::step | ( | float | dt, |
| const EnvironmentSnapshot & | env | ||
| ) |
Advance simulation then refresh instance buffers.
- 参数
-
dt Frame delta. env Environment snapshot.
在文件 EffectBackend.cpp 第 15 行定义.
引用了 eve::gpuagents::GpuAgentSimulation::states(), eve::gpuagents::GpuAgentSimulation::step(), eve::Result< T >::success() , 以及 eve::gpuagents::AgentInstanceRenderer::sync().
该类的文档由以下文件生成:
- src/modules/gpuagents/EffectBackend.h
- src/modules/gpuagents/EffectBackend.cpp