载入中...
搜索中...
未找到
GpuAgentsPreview.cpp
浏览该文件的文档.
23 if (request.agentCount <= 0 || request.seconds < 0.0 || request.fixedStep <= 0.0 || request.maximumSteps == 0) {
26 eve::DiagnosticCode::InvalidArgument, gpuagents_editing::RuleId("editor.gpuagents.preview.request"),
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:314
World-level registry for GPU agent simulations and environment semantics.
Definition GpuAgentWorld.h:27
Reversible document for GPU Agents effect authoring.
Definition GpuAgentsDocument.h:86
Optional bridge projecting a validated document into live World/Backend. @ownership Borrowed world/ba...
Definition GpuAgentsDocument.h:136
Result< void > apply(const GpuAgentsDocumentTarget &target, gpuagents::EffectBackend *backend, gpuagents::GpuAgentWorld *world) const
Configure backend from document and optionally re-init the world surface domain.
Definition GpuAgentsDocument.cpp:348
GpuAgentsPreviewSnapshot build(const GpuAgentsDocumentTarget &target, const GpuAgentsPreviewRequest &request) const
Validate, spawn, step and capture a renderer-neutral preview frame.
Definition GpuAgentsPreview.cpp:13
Diagnostic ruleDiagnostic(eve::DiagnosticCode code, RuleId rule, DiagnosticSeverity severity, std::string message)
Build a common diagnostic carrying an open editing rule identity.
Definition EditingResult.h:25
@ InvalidArgument
@ Failed
Standardized per-agent simulation output shared by all effect kinds.
Definition AgentState.h:12
One agent sample in a preview snapshot.
Definition GpuAgentsPreview.h:30
Deterministic scrub request for editor preview.
Definition GpuAgentsPreview.h:18
Revision-bound preview snapshot with optional life-field energy.
Definition GpuAgentsPreview.h:38
std::vector< EditorDiagnostic > diagnostics
Definition GpuAgentsPreview.h:44
Revision documentRevision
Definition GpuAgentsPreview.h:40
double simulatedSeconds
Definition GpuAgentsPreview.h:41
EditorStatus status
Definition GpuAgentsPreview.h:39
std::vector< GpuAgentsPreviewAgent > agents
Definition GpuAgentsPreview.h:42
float lifeTrailEnergy
Definition GpuAgentsPreview.h:43