Skip to content

Commit 9cd2335

Browse files
committed
Added new Modular Shader Debugger
1 parent f5edac5 commit 9cd2335

21 files changed

+1561
-245
lines changed
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
TimelineContainer
2+
{
3+
flex-grow: 1;
4+
}
5+
6+
TimelineRoot
7+
{
8+
border-width: 1px;
9+
border-color: black;
10+
overflow: hidden;
11+
}
12+
13+
TimelineRow
14+
{
15+
border-width: 1px;
16+
border-color: black;
17+
flex-direction: row-reverse;
18+
background-color: #303030;
19+
overflow: hidden;
20+
}
21+
22+
FunctionItem
23+
{
24+
border-color: black;
25+
border-width: 1px;
26+
border-radius: 5px;
27+
margin: 4px;
28+
background-color: darkslategrey;
29+
position: absolute;
30+
flex-direction: row;
31+
align-content: stretch;
32+
}
33+
34+
.function-header-queue
35+
{
36+
-unity-font-style: italic;
37+
color: grey;
38+
-unity-text-align: middle-right;
39+
}
40+
41+
.function-header-name
42+
{
43+
align-self: center;
44+
flex-grow: 1;
45+
margin: 4px;
46+
-unity-text-align: middle-left;
47+
}
48+
49+
.timeline-title
50+
{
51+
position: initial;
52+
width: 200px;
53+
border-width: 0 2px 0 0;
54+
border-color: black;
55+
background-color: #484848;
56+
align-content: center;
57+
flex-shrink: 0;
58+
overflow: hidden;
59+
}
60+
.timeline-title>Label
61+
{
62+
flex-grow: 1;
63+
-unity-text-align: middle-right;
64+
margin: 3px;
65+
}
66+
67+
.timeline-content
68+
{
69+
flex-grow: 1;
70+
}
71+
72+
.timeline-content-row
73+
{
74+
flex-direction: row;
75+
}
76+
77+
FunctionViewer
78+
{
79+
width: 50%;
80+
border-width: 2px;
81+
border-color: #202020;
82+
margin: 2px;
83+
}
84+
85+
FunctionTemplateViewer
86+
{
87+
flex-grow: 1;
88+
border-width: 2px;
89+
border-color: #202020;
90+
margin: 2px;
91+
}
92+
93+
ModuleViewer
94+
{
95+
width: 50%;
96+
border-width: 2px;
97+
border-color: #202020;
98+
margin: 2px;
99+
}
100+
101+
.contains-variable
102+
{
103+
border-color: yellow;
104+
}
105+
106+
.selected-function
107+
{
108+
border-color: aqua;
109+
}
110+
111+
.area-title
112+
{
113+
margin: 4px;
114+
115+
-unity-font-style: bold;
116+
}
117+
118+
Foldout > Toggle
119+
{
120+
margin-left: -11px;
121+
}
122+
123+
.area-content>VisualElement, .area-content>VisualElement>VisualElement
124+
{
125+
overflow: visible;
126+
}
127+
128+
.area-content
129+
{
130+
margin: 4px 4px 4px 15px;
131+
overflow: visible;
132+
}
133+
134+
.variable-type-text
135+
{
136+
color: grey;
137+
}
138+
139+
.selected-variable
140+
{
141+
background-color: rgba(255,255,0,0.2);
142+
}

Editor/Resources/MSS/MSSUIElements/FunctionTimelineStyle.uss.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Resources/MSS/MSSUIElements/ModularShaderDataViewer.uxml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Editor/Resources/MSS/MSSUIElements/ModularShaderDataViewer.uxml.meta

Lines changed: 0 additions & 10 deletions
This file was deleted.

Editor/Resources/MSS/MSSUIElements/ModularShaderDataViewerStyle.uss

Lines changed: 0 additions & 35 deletions
This file was deleted.

Editor/Resources/MSS/MSSUIElements/ModularShaderDataViewerStyle.uss.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.button-tab-area
2+
{
3+
flex-direction: row;
4+
margin: 0;
5+
}
6+
.button-tab
7+
{
8+
flex-grow: 1;
9+
height: 24px;
10+
margin: 4px 0 0 0;
11+
border-radius: 0;
12+
border-width: 1px 1px 0 1px;
13+
background-color: #484848;
14+
}
15+
16+
.button-tab-selected
17+
{
18+
background-color: #303030;
19+
}
20+

Editor/Resources/MSS/MSSUIElements/ModularShaderDebuggerStyle.uss.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
TemplateItemElement
2+
{
3+
margin: 3px;
4+
5+
flex-shrink: 0;
6+
flex-grow: 0;
7+
}
8+
.graph
9+
{
10+
background-color: #202020;
11+
}
12+
13+
.node-header-queue
14+
{
15+
-unity-font-style: italic;
16+
color: grey;
17+
-unity-text-align: middle-right;
18+
flex-grow: 1;
19+
}
20+
21+
.node-header
22+
{
23+
background-color: #383838;
24+
flex-direction: row;
25+
padding: 8px;
26+
border-color: black;
27+
border-width: 2px;
28+
border-top-left-radius: 6px;
29+
border-top-right-radius: 6px;
30+
}
31+
32+
.node-header-name
33+
{
34+
color: #C4C4C4;
35+
}
36+
37+
.node-header-id
38+
{
39+
color: #C4C4C4;
40+
font-size: 9px;
41+
-unity-font-style: italic;
42+
align-self: center;
43+
}
44+
45+
.node-body
46+
{
47+
background-color: #383838;
48+
flex-direction: row;
49+
border-bottom-width: 2px;
50+
border-left-width: 2px;
51+
border-right-width: 2px;
52+
border-color: black;
53+
border-bottom-left-radius: 6px;
54+
border-bottom-right-radius: 6px;
55+
56+
}
57+
.node-body>VisualElement
58+
{
59+
padding: 8px;
60+
flex-grow: 1;
61+
}
62+
63+
.node-body.divider>VisualElement
64+
{
65+
border-color: black;
66+
border-left-width: 2px;
67+
}
68+
69+
.node-body>Label
70+
{
71+
padding: 8px;
72+
margin-right: 20px;
73+
-unity-text-align: middle-left;
74+
color: #C4C4C4;
75+
}
76+
77+
.node-body>VisualElement>Label
78+
{
79+
color: #C4C4C4;
80+
flex-grow: 1;
81+
-unity-text-align: middle-right;
82+
}
83+
84+
TemplateRow
85+
{
86+
margin-left: 50px;
87+
}
88+
89+
PopupField
90+
{
91+
margin-top: 10px;
92+
margin-bottom: 10px;
93+
width: 500px;
94+
}

Editor/Resources/MSS/MSSUIElements/TemplateGraphStyle.uss.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)