载入中...
搜索中...
未找到
GpuAgentsEditorModule.cpp
浏览该文件的文档.
43std::vector<std::string_view> GpuAgentsAutomationTargetFactory::types() const { return {"gpuagents-effect"}; }
46 const editor::TargetId& target, std::string_view type, const editor::EditorValue::Object& request) {
67void GpuAgentsEditorModule::expose(ssq::Table& table) { table.addClass(name, GpuAgentsEditorModule::create, false); }
86 if (request.agentCount <= 0 || request.seconds < 0.0 || request.fixedStep <= 0.0 || request.maximumSteps == 0) {
89 eve::DiagnosticCode::InvalidArgument, gpuagents_editing::RuleId("editor.gpuagents.preview.request"),
102 gpuagents_editing::DiagnosticSeverity::Error, "Failed to apply GPU Agents document to preview runtime"));
const Status & status() const noexcept
Inspect the structured operation status.
Definition Result.h:521
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
const std::vector< Diagnostic > & diagnostics() const noexcept
All diagnostics in stable insertion order.
Definition Status.h:128
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:313
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
Creates schema-driven GPU Agents documents for editor automation. @ownership Returned targets own the...
Definition GpuAgentsEditorModule.h:21
std::vector< std::string_view > types() const override
Accepted GPU Agents target type names.
Definition GpuAgentsEditorModule.cpp:43
editor::Result< editor::AutomationOwnedTarget > create(const editor::TargetId &target, std::string_view type, const editor::EditorValue::Object &request) override
Create a GPU Agents document and optionally load its snapshot request field.
Definition GpuAgentsEditorModule.cpp:45
Composition adapter that publishes the GPU Agents automation-target factory. @ownership Owns the regi...
Definition GpuAgentsEditorModule.h:36
GpuAgentsPreviewSnapshot build(const GpuAgentsDocumentTarget &target, const GpuAgentsPreviewRequest &request) const
Validate, spawn, step and capture a renderer-neutral preview frame.
Definition GpuAgentsEditorModule.cpp:76
Diagnostic ruleDiagnostic(eve::DiagnosticCode code, RuleId rule, DiagnosticSeverity severity, std::string message)
Build an owning common diagnostic carrying an open editing rule identity.
Definition EditingResult.cpp:20
@ InvalidArgument
@ Failed
Definition Container.h:602
Target plus optional borrowed-dependency owner returned by an automation factory.
Definition EditorAutomationTargetFactory.h:15
std::unique_ptr< IEditableTarget > target
Definition EditorAutomationTargetFactory.h:18
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
Revision documentRevision
Definition GpuAgentsPreview.h:40