forked from CesiumGS/webglreport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
245 lines (234 loc) · 7.69 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<!DOCTYPE html>
<html lang="en">
<head>
<!--
Copyright 2011-2014 Analytical Graphics Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy
of the License at: https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
-->
<title>WebGL Report</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=725, user-scalable=yes">
<link rel="stylesheet" type="text/css" href="black.css">
<script type="text/javascript" src="libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="libs/underscore.js/1.3.1/underscore-min.js"></script>
<script type="text/javascript" src="webglreport.js"></script>
</head>
<body>
<script type="text/template" id="reportTemplate">
<table class="report">
<col width="35%" />
<col />
<tr>
<th>Platform:</th>
<td><%= report.platform %></td>
</tr>
<tr>
<th>Browser User Agent:</th>
<td><%= report.userAgent %></td>
</tr>
<% if (typeof report.contextName !== 'undefined') { %>
<tr>
<th>Context Name:</th>
<td><%= report.contextName %></td>
</tr>
<tr>
<th>GL Version:</th>
<td><%= report.glVersion %></td>
</tr>
<tr>
<th>Shading Language Version:</th>
<td><%= report.shadingLanguageVersion %></td>
</tr>
<tr>
<th>Vendor:</th>
<td><%= report.vendor %></td>
</tr>
<tr>
<th>Renderer:</th>
<td><%= report.renderer %></td>
</tr>
<tr>
<th>Antialiasing:</th>
<td><%= report.antialias %></td>
</tr>
<tr>
<th>ANGLE:</th>
<td><%= report.angle %></td>
</tr>
<tr>
<th>Major Performance Caveat:</th>
<td><%= report.majorPerformanceCaveat %></td>
</tr>
<tr>
<td colspan="2">
<div class="pipeline">
<canvas class="background"></canvas>
<div class="vertexShader">
<h1>Vertex Shader</h1>
<table>
<tr title="Minimum: 8">
<th>Max Vertex Attributes:</th>
<td><%= report.maxVertexAttributes %></td>
</tr>
<tr title="Minimum: 128">
<th>Max Vertex Uniform Vectors:</th>
<td><%= report.maxVertexUniformVectors %></td>
</tr>
<tr title="Minimum: 0">
<th>Max Vertex Texture Image Units:</th>
<td><%= report.maxVertexTextureImageUnits %></td>
</tr>
<tr title="Minimum: 8">
<th>Max Varying Vectors:</th>
<td><%= report.maxVaryingVectors %></td>
</tr>
<tr>
<th>Best float precision:</th>
<td><%= report.vertexShaderBestPrecision %></td>
</tr>
</table>
</div>
<div class="rasterizer">
<h1>Rasterizer</h1>
<table>
<tr title="Minimum: [1, 1]">
<th>Aliased Line Width Range:</th>
<td><%= report.aliasedLineWidthRange %></td>
</tr>
<tr title="Minimum: [1, 1]">
<th>Aliased Point Size Range:</th>
<td><%= report.aliasedPointSizeRange %></td>
</tr>
</table>
</div>
<div class="fragmentShader">
<h1>Fragment Shader</h1>
<table>
<tr title="Minimum: 16">
<th>Max Fragment Uniform Vectors:</th>
<td><%= report.maxFragmentUniformVectors %></td>
</tr>
<tr title="Minimum: 8">
<th>Max Texture Image Units:</th>
<td><%= report.maxTextureImageUnits %></td>
</tr>
<tr>
<th>float/int precision:</th>
<td><%= report.fragmentShaderFloatIntPrecision %></td>
</tr>
<tr>
<th>Best float precision:</th>
<td><%= report.fragmentShaderBestPrecision %></td>
</tr>
</table>
</div>
<div class="framebuffer">
<h1>Framebuffer</h1>
<table>
<tr>
<th>RGBA Bits:</th>
<td>[<%= report.redBits %>, <%= report.greenBits %>, <%= report.blueBits %>, <%= report.alphaBits %>]</td>
</tr>
<tr>
<th>Depth / Stencil Bits:</th>
<td>[<%= report.depthBits %>, <%= report.stencilBits %>]</td>
</tr>
<tr>
<th>Max Render Buffer Size:</th>
<td><%= report.maxRenderBufferSize %></td>
</tr>
<tr>
<th>Max Viewport Dimensions:</th>
<td><%= report.maxViewportDimensions %></td>
</tr>
</table>
</div>
<div class="textures">
<h1>Textures</h1>
<table>
<tr title="Minimum: 64">
<th>Max Texture Size:</th>
<td><%= report.maxTextureSize %></td>
</tr>
<tr title="Minimum: 16">
<th>Max Cube Map Texture Size:</th>
<td><%= report.maxCubeMapTextureSize %></td>
</tr>
<tr title="Minimum: 8">
<th>Max Combined Texture Image Units:</th>
<td><%= report.maxCombinedTextureImageUnits %></td>
</tr>
<% if (report.maxAnisotropy) { %>
<tr title="Minimum: 2">
<th>Max Anisotropy:</th>
<td><%= report.maxAnisotropy %></td>
</tr>
<% } %>
</table>
</div>
</div>
</td>
</tr>
<tr>
<th colspan="2">Supported Extensions:</th>
</tr>
<% _.each(report.extensions, function(e) { %>
<tr>
<td></td>
<td>
<a href="<%= getExtensionUrl(e) %>"><%= e %></a>
</td>
</tr>
<% }) %>
<tr>
<td colspan="2">
<br />
<%= report.draftExtensions %>
</td>
</tr>
<% } %>
</table>
</script>
<script type="text/template" id="webglSupportedTemplate">
<p>This browser supports WebGL.</p>
</script>
<script type="text/template" id="webglSupportedChromeFrameTemplate">
<p>This browser supports WebGL with Chrome Frame.</p>
</script>
<script type="text/template" id="webglNotSupportedTemplate">
<p>This browser does not support WebGL.</p>
<p>
Check out <a href="http://get.webgl.org/">Get WebGL</a>,
or try installing the latest version of
<a href="https://www.google.com/chrome">Chrome</a>, or
<a href="https://www.mozilla.org/en-US/firefox/">Firefox</a>.
</p>
</script>
<script type="text/template" id="webglNotEnabledTemplate">
<p>This browser supports WebGL, but it is disabled or unavailable.</p>
<p>Sometimes this is the result of older video drivers being rejected by the browser. Try updating your video drivers if possible.</p>
<p>
Also check out <a href="http://get.webgl.org/">Get WebGL</a>,
or try installing the latest version of
<a href="https://www.google.com/chrome">Chrome</a>, or
<a href="https://www.mozilla.org/en-US/firefox/">Firefox</a>.
</p>
</script>
<a href="https://github.com/AnalyticalGraphicsInc/webglreport" target="_blank"><img style="position: absolute; top: 0; left: 0; border: 0;" src="images/ForkMe_Ribbons/ForkMe_Blk.png" alt="Fork me on GitHub"></a>
<h1>WebGL Report</h1>
<p id="javascript_disabled" class="align-center">You need to enable JavaScript to see WebGL.</p>
<div class="align-center" id="output">
</div>
<script type="text/javascript">
var _noJS = document.getElementById('javascript_disabled');
_noJS.parentNode.removeChild(_noJS);
</script>
</body>
</html>