Skip to content

Commit 2c78b91

Browse files
committed
Add page for feature overview table per vendor and architecture.
1 parent 726eabb commit 2c78b91

File tree

2 files changed

+950
-0
lines changed

2 files changed

+950
-0
lines changed

source/website/FeatureTable.html

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>D3D12 Feature Table</title>
6+
<style>
7+
:root {
8+
color: rgb(212, 212, 212);
9+
background-color: rgb(30, 30, 30);
10+
}
11+
12+
.Microsoft {
13+
background-color: #1C262B;
14+
}
15+
16+
.AMD {
17+
background-color: #220000;
18+
}
19+
20+
.Nvidia {
21+
background-color: #002200;
22+
}
23+
24+
.Intel {
25+
background-color: #000022;
26+
}
27+
28+
.Qualcomm {
29+
background-color: #231e16;
30+
}
31+
32+
td {
33+
white-space: pre-wrap;
34+
}
35+
36+
th, td {
37+
border: 1px solid #FFFFFF33;
38+
}
39+
40+
table {
41+
border-collapse: collapse;
42+
}
43+
44+
tbody > tr:nth-of-type(even) {
45+
background-color: #262626;
46+
}
47+
tbody > tr:nth-of-type(even) > th:first-of-type {
48+
background-color: #2E2E2E;
49+
}
50+
tbody > tr:nth-of-type(odd) > th:first-of-type {
51+
background-color: #262626;
52+
}
53+
colgroup {
54+
border-inline-end: 2px solid #FFFFFF66;
55+
}
56+
/* sticky table headers */
57+
th {
58+
position: sticky;
59+
}
60+
/* first column sticks to the left of the screen*/
61+
tbody > tr > th:first-of-type {
62+
left: -1px;
63+
}
64+
/* first row sticks to the top of the screen */
65+
thead > tr:first-of-type > th {
66+
top: -1px;
67+
z-index: 1; /* draw above first column */
68+
border-bottom: none;
69+
}
70+
/* second row sticks right below first row */
71+
thead > tr:nth-of-type(2) > th {
72+
top: 20px;
73+
z-index: 2;
74+
border-top: none;
75+
border-bottom: 2px solid #FFFFFF66;
76+
}
77+
78+
#FilterContainer {
79+
display: flex;
80+
}
81+
</style>
82+
</head>
83+
<body>
84+
<main>
85+
<div id="FilterContainer">
86+
<label for="TableShowAPIFeatureNames">Show API Feature Names</label>
87+
<input type="checkbox" id="TableShowAPIFeatureNames" autocomplete="off" onchange="UpdateTable()"/>
88+
</div>
89+
<div>
90+
<table id="archtable"></table>
91+
</div>
92+
</main>
93+
<!--<script src="./d3d12infodb.js"></script>--> <!-- for local testing -->
94+
<script src="./Report.js"></script>
95+
<script src="./FeatureTable.js"></script>
96+
<script>
97+
//Reports = d3d12infodb.map(e => new ReportContainer(e)); <!-- for local testing -->
98+
let xhr = new XMLHttpRequest()
99+
xhr.open("GET", apiAddress + "/get_all_submissions")
100+
xhr.onreadystatechange = () => {
101+
if (xhr.readyState == 4 && xhr.status == 200) {
102+
Reports = JSON.parse(xhr.responseText).map(e => new ReportContainer(e))
103+
PrepareReportsForTable();
104+
UpdateTable();
105+
}
106+
}
107+
xhr.send()
108+
</script>
109+
</body>
110+
</html>

0 commit comments

Comments
 (0)