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 only for window |
| 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".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.realm-planeis rendered as double-sided in rasterization. Pointer raycast accepts front-face hits only.sizeis accepted only forkind = "texture".
Notes
windowIdis treated as a late-bound reference. Target upsert is accepted even if the window does not exist yet.
When validation fails:
- command response returns
success = false - host also receives
SystemEvent::Error(scope = "command").
Documentation Vulfram Core