Skip to content

Commit fc8fc0d

Browse files
authored
WebGPURenderer: Introduce Inspector (#31869)
* Node: add `name` property * Introduce `backend.getTimestampUID()` * Introduce `InspectorBase` * Introduce `renderer.getAnimationLoop()` * export InspectorBase * add some node names * Add `RendererInspector` for render/compute stats * Introduce `Inspector` * revision messages * add output color transform name * add inspector for some examples and new info layout * cleanup * revision & sync frames - webgpu backend * updates * revision * revision * Update RendererInspector.js * add miscellaneous stats * cleanup * revision * improve interface * simplify api * Update Style.js * Update Style.js * rev * add Point Light Shadow description * Update PointShadowNode.js * rev style * Update Performance.js * add shadowmap description * Update Style.js * add calls
1 parent 56aa339 commit fc8fc0d

38 files changed

+3535
-136
lines changed

examples/example.css

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
* {
2+
box-sizing: border-box;
3+
-webkit-font-smoothing: antialiased;
4+
-moz-osx-font-smoothing: grayscale;
5+
}
6+
7+
body {
8+
margin: 0;
9+
background-color: #000;
10+
overscroll-behavior: none;
11+
overflow: hidden;
12+
height: 100%;
13+
}
14+
15+
a {
16+
text-decoration: none;
17+
color: inherit;
18+
}
19+
20+
#info {
21+
position: fixed;
22+
top: 15px;
23+
left: 15px;
24+
z-index: 1001;
25+
26+
display: grid;
27+
grid-template-columns: 50px auto;
28+
grid-template-rows: auto auto;
29+
column-gap: 10px;
30+
align-items: center;
31+
color: #e0e0e0;
32+
text-shadow: 1px 1px 5px rgba(0, 0, 0, .7);
33+
font: 400 14px 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
34+
}
35+
36+
#info > a.logo-link {
37+
grid-column: 1;
38+
grid-row: 1 / span 2;
39+
display: block;
40+
width: 50px;
41+
height: 50px;
42+
background: no-repeat center / contain;
43+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 226.77 226.77"><g transform="translate(8.964 4.2527)" stroke="%23ffffff" stroke-linecap="butt" stroke-linejoin="round" stroke-width="4" fill="none"><path d="m63.02 200.61-43.213-174.94 173.23 49.874z"/><path d="m106.39 50.612 21.591 87.496-86.567-24.945z"/><path d="m84.91 125.03-10.724-43.465 43.008 12.346z"/><path d="m63.458 38.153 10.724 43.465-43.008-12.346z"/><path d="m149.47 62.93 10.724 43.465-43.008-12.346z"/><path d="m84.915 125.06 10.724 43.465-43.008-12.346z"/></g></svg>');
44+
}
45+
46+
.title-wrapper {
47+
grid-column: 2;
48+
grid-row: 1;
49+
display: flex;
50+
align-items: center;
51+
}
52+
53+
#info > small {
54+
grid-column: 2;
55+
grid-row: 2;
56+
font-size: 12px;
57+
color: #e0e0e0;
58+
}
59+
60+
.title-wrapper > a {
61+
font-weight: 600;
62+
}
63+
64+
.title-wrapper > span {
65+
opacity: .7;
66+
position: relative;
67+
padding-left: 12px;
68+
margin-left: 10px;
69+
}
70+
71+
#info > small a {
72+
color: #ff0;
73+
text-decoration: none;
74+
}
75+
76+
#info > small a:hover {
77+
text-decoration: underline;
78+
}
79+
80+
.title-wrapper > span::before {
81+
content: "";
82+
position: absolute;
83+
left: 1px;
84+
top: calc(50% + 1px);
85+
transform: translateY(-50%);
86+
width: 1px;
87+
height: 12px;
88+
background: #c3c3c3;
89+
opacity: .5;
90+
}

0 commit comments

Comments
 (0)