载入中...
搜索中...
未找到
GpuAgentWorld.cpp
浏览该文件的文档.
10 Diagnostic::error(DiagnosticCode::InvalidArgument, "backend name is empty", "name", {}, "gpuagents"));
14 Diagnostic::error(DiagnosticCode::InvalidArgument, "backend is null", "backend", {}, "gpuagents"));
18 Diagnostic::error(DiagnosticCode::AlreadyExists, "backend name already registered", name, {}, "gpuagents"));
Stable, structured diagnostics shared by engine modules.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
Binds an EffectProfile to a GpuAgentSimulation and optional renderer.
Definition EffectBackend.h:19
EffectBackend * find(const std::string &name) const
Look up a registered backend by name. @ownership Borrowed; World does not own the returned pointer....
Definition GpuAgentWorld.cpp:32
Result< void > unregisterBackend(const std::string &name)
Remove a named backend registration without destroying the backend. @ownership Does not take or relea...
Definition GpuAgentWorld.cpp:24
EnvironmentSnapshot makeSnapshot(bool includeSurface) const
Build an environment snapshot for the current World state.
Definition GpuAgentWorld.cpp:37
Result< void > registerBackend(std::string name, EffectBackend *backend)
Register a borrowed backend under a unique name.
Definition GpuAgentWorld.cpp:7
Result< void > stepAll(float dt)
Step every registered backend with a shared environment snapshot.
Definition GpuAgentWorld.cpp:51
2.5D surface + life-field textures for Life Network.
Definition SurfaceField.h:16
Definition AgentInstanceRenderer.cpp:5
@ LifeNetwork
@ InvalidArgument
@ NotFound
@ PreconditionViolation
@ AlreadyExists
Read-only environment semantics prepared by GpuAgentWorld each tick.
Definition EnvironmentSnapshot.h:26
const ObstacleField * obstacles
Definition EnvironmentSnapshot.h:36
std::vector< EnvironmentMarker > nutrients
Definition EnvironmentSnapshot.h:34
std::vector< EnvironmentMarker > goals
Definition EnvironmentSnapshot.h:32
std::vector< EnvironmentMarker > dangers
Definition EnvironmentSnapshot.h:33
glm::vec3 waterCurrent
Definition EnvironmentSnapshot.h:27
glm::vec3 windVelocity
Definition EnvironmentSnapshot.h:28