execution_deferred_plan.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_deferred_plan.bend as Execution_deferred_plan
1 import
import Base
Types
type Node source · line 5 · raw
Data
Inputs are the already validated flattened DAG in topological order. The ordinary registry must derive hasDeferred from its owned command buffers.
Node@id:U32 -> @hasDeferred:Bool -> @explicit:Bool -> @conditional:Bool -> @exclusive:Bool -> Node
type Edge source · line 7 · raw
Data
Edge@before:U32 -> @after:U32 -> @ignoreDeferred:Bool -> Edge
type Position source · line 9 · raw
Data
Position@id:U32 -> @distance:Nat -> @pending:Bool -> Position
type Explicit source · line 11 · raw
Data
Explicit@distance:Nat -> @id:U32 -> Explicit
type State source · line 13 · raw
Data
State@positions:List<&2, Position> -> @explicit:List<&2, Explicit> -> State
type Boundary source · line 15 · raw
Data
Boundary@before:U32 -> @after:U32 -> @distance:Nat -> @reuse:Maybe<&2, U32> -> Boundary
Definitions
def node_id source · line 18 · raw
@node:Node -> U32
def explicit source · line 21 · raw
@node:Node -> Bool
def exclusive source · line 24 · raw
@node:Node -> Bool
def deferred source · line 27 · raw
@node:Node -> Bool
def find_choice source · line 30 · raw
@same:Bool -> @node:Node -> @rest:Node -> Node
def find source · line 34 · raw
@nodes:List<&2, Node> -> @+id:U32 -> Node
def position_choice source · line 38 · raw
@same:Bool -> @value:Position -> @rest:Position -> Position
def position source · line 42 · raw
@positions:List<&2, Position> -> @+id:U32 -> Position
def keep_position source · line 46 · raw
@same:Bool -> @value:Position -> @rest:List<&2, Position> -> List<&2, Position>
def without source · line 50 · raw
@positions:List<&2, Position> -> @+id:U32 -> List<&2, Position>
def update source · line 54 · raw
@positions:List<&2, Position> -> @value:Position -> List<&2, Position>
def weight source · line 57 · raw
@needsSync:Bool -> @target:Node -> Nat
def target_updated source · line 61 · raw
@positions:List<&2, Position> -> @+distance:Nat -> @+needsSync:Bool -> @+ignored:Bool -> @target:Node -> @current:Position -> List<&2, Position>
def outgoing_edge source · line 64 · raw
@positions:List<&2, Position> -> @distance:Nat -> @needsSync:Bool -> @ignoreDeferred:Bool -> @+target:Node -> @current:Position -> List<&2, Position>
def selected_edge source · line 66 · raw
@positions:List<&2, Position> -> @distance:Nat -> @needsSync:Bool -> @ignoreDeferred:Bool -> @target:Node -> @current:Position -> @matches:Bool -> List<&2, Position>
def outgoing source · line 70 · raw
@edges:List<&2, Edge> -> @+nodes:List<&2, Node> -> @+id:U32 -> @+distance:Nat -> @+needsSync:Bool -> @+positions:List<&2, Position> -> List<&2, Position>
def syncs source · line 74 · raw
@isExplicit:Bool -> @id:U32 -> @distance:Nat -> @explicitNodes:List<&2, Explicit> -> List<&2, Explicit>
def visit_position source · line 78 · raw
@+node:Node -> @edges:List<&2, Edge> -> @nodes:List<&2, Node> -> @positions:List<&2, Position> -> @explicitNodes:List<&2, Explicit> -> @current:Position -> State
def visit source · line 81 · raw
@+node:Node -> @edges:List<&2, Edge> -> @nodes:List<&2, Node> -> @state:State -> State
def distances source · line 84 · raw
@order:List<&2, Node> -> @+nodes:List<&2, Node> -> @+edges:List<&2, Edge> -> @state:State -> State
def explicit_choice source · line 88 · raw
@same:Bool -> @id:U32 -> @rest:Maybe<&2, U32> -> Maybe<&2, U32>
def reuse source · line 92 · raw
@explicitNodes:List<&2, Explicit> -> @+distance:Nat -> Maybe<&2, U32>
def boundary_step source · line 96 · raw
@before:U32 -> @after:U32 -> @from:Position -> @to:Position -> @target:Node -> @explicitNodes:List<&2, Explicit> -> @+rest:List<&2, Boundary> -> List<&2, Boundary>
def boundaries source · line 99 · raw
@edges:List<&2, Edge> -> @+nodes:List<&2, Node> -> @+positions:List<&2, Position> -> @+explicitNodes:List<&2, Explicit> -> List<&2, Boundary>
def planned source · line 103 · raw
@nodes:List<&2, Node> -> @edges:List<&2, Edge> -> @state:State -> List<&2, Boundary>
def plan source · line 112 · raw
@enabled:Bool -> @+order:List<&2, Node> -> @+edges:List<&2, Edge> -> List<&2, Boundary>
Bevy ad678262, schedule/auto_insert_apply_deferred.rs build: distance rises for a needed sync or an unconditional explicit sync target. Ignored edges postpone deferred visibility through later nodes; exclusive targets override that suppression. Reuse one explicit boundary at the required distance. Final flushing is an executor setting, independent of this graph-build pass.