note/src/g/graph/graphviz.md

19 lines
762 B
Markdown
Raw Normal View History

2025-02-09 22:10:52 +08:00
# dot
```dot
digraph FrameGraph {
graph [style=invis, rankdir=TB ordering=out, splines=spline]
node [shape=record, fontname=helvetica, fontsize=10, margin="0.2,0.03"]
P0[label=<{ {<B>Pass1</B>} | {Refs: 1<BR/> Index: 0} }> style="rounded,filled", fillcolor=orange]
subgraph cluster_P0 { P0 R0_1 }
P1[label=<{ {<B>Pass2</B>} | {&#x2605; Refs: 1<BR/> Index: 1} }> style="rounded,filled", fillcolor=orange]
R0_1[label=<{ {<B>foo</B><BR/><I>texture</I>} | {Index: 0<BR/>Refs : 2} }> style="rounded,filled", fillcolor=skyblue]
R0_2[label=<{ {<B>foo</B> <FONT>v2</FONT><BR/><I>texture</I>} | {Index: 0<BR/>Refs : 0} }> style="rounded,filled", fillcolor=skyblue]
P0->{ R0_1 } [color=orangered]
P1->{ R0_2 } [color=orangered]
R0_1->{ P1 } [color=yellowgreen]
}
```