27#include "../TaskSystem/TaskGraphTemplate.h"
101 const std::vector<Layer>& layers);
ComponentTypeID GetComponentTypeID_Static()
Applies a hierarchical layout to a TaskGraphTemplate in place.
static constexpr float ORIGIN_X
X coordinate of the root (EntryPoint) column.
static constexpr float SPACING_Y
Vertical gap between rows (pixels).
static void AssignPositions(TaskGraphTemplate &graph, const std::vector< Layer > &layers)
Assigns x/y positions from the layer structure.
static void SetPos(TaskNodeDefinition &node, float x, float y)
Writes a float position into a node's Parameters map.
static constexpr float SPACING_X
Horizontal gap between columns (pixels).
static std::vector< Layer > BuildLayers(const TaskGraphTemplate &graph)
Builds layers via BFS from the entry point.
static constexpr float ORIGIN_Y
Y coordinate of the first row.
static void ApplyHierarchicalLayout(TaskGraphTemplate &graph)
Assigns screen-space positions to every node in graph.
Immutable, shareable task graph asset.
< Provides AssetID and INVALID_ASSET_ID
A single layer in the hierarchical layout.
std::vector< int32_t > NodeIDs
IDs of nodes assigned to this layer, in order.
Full description of a single node in the task graph.