CmdTargetUpsert
Upserts a logical target used by the auto-graph system.
Arguments
| Field | Type | Description |
|---|---|---|
| targetId | u64 | Logical target ID |
| kind | TargetKind | "window", "widget-realm-viewport", "realm-plane", "texture" |
| windowId | Option |
Required for window, widget-realm-viewport, realm-plane |
| size | Option |
Valid only for texture targets |
| formatPolicy | Option |
Optional color/depth format policy |
| alphaPolicy | Option |
Optional alpha policy |
| msaaSamples | Option |
Optional MSAA samples |
Response
Returns CmdResultTargetUpsert:
| Field | Type | Description |
|---|---|---|
| success | bool | Whether the target was upserted |
| message | String | Status or error message |
Validation Rules
windowIdis required forkind = "window","widget-realm-viewport", and"realm-plane".windowIdmust reference an existing window.windowIdis not accepted forkind = "texture".widget-realm-viewportis intended forUiNodeProps::WidgetRealmViewportsampling. It participates in auto-graph routing/input, but is not composed as a visible connector overlay on the host UI realm.sizeis accepted only forkind = "texture".
When validation fails:
- command response returns
success = false - host also receives
SystemEvent::Error(scope = "command").
Documentation Vulfram Core