forked from CesiumGS/webglreport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
422 lines (410 loc) · 19.8 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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
<!DOCTYPE html>
<html lang="en">
<head>
<title>WebGL Report</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=725, user-scalable=yes">
<link rel="stylesheet" type="text/css" href="black.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/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">
<div class="report"><table>
<tr>
<th class="main-left-column">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>
<% if (report.unMaskedVendor !== '') { %>
<tr>
<th>Unmasked Vendor:</th>
<td><%= report.unMaskedVendor %></td>
</tr>
<% } %>
<% if (report.unMaskedRenderer !== '') { %>
<tr>
<th>Unmasked Renderer:</th>
<td><%= report.unMaskedRenderer %></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>
<% if (report.webglVersion > 1) { %>
<tr>
<th>Max Vertex Uniform Components:</th>
<td><%= report.maxVertexUniformComponents %></td>
</tr>
<tr>
<th>Max Vertex Uniform Blocks:</th>
<td><%= report.maxVertexUniformBlocks %></td>
</tr>
<tr>
<th>Max Vertex Output Components:</th>
<td><%= report.maxVertexOutputComponents %></td>
</tr>
<tr>
<th>Max Varying Components:</th>
<td><%= report.maxVaryingComponents %></td>
</tr>
<% } %>
</table>
</div>
<div class="transformFeedback">
<h1>Transform Feedback</h1>
<% if (report.webglVersion < 2) { %>
<div class="comingSoon">
Coming in <a href="https://www.khronos.org/registry/webgl/specs/latest/2.0/">WebGL 2</a>
</div>
<% } else { %>
<table>
<tr>
<th>Max Interleaved Components:</th>
<td><%= report.maxTransformFeedbackInterleavedComponents %></td>
</tr>
<tr>
<th>Max Separate Attribs:</th>
<td><%= report.maxTransformFeedbackSeparateAttribs %></td>
</tr>
<tr>
<th>Max Separate Components:</th>
<td><%= report.maxTransformFeedbackSeparateComponents %></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>
<% if (report.webglVersion > 1) { %>
<tr>
<th>Max Fragment Uniform Components:</th>
<td><%= report.maxFragmentUniformComponents %></td>
</tr>
<tr>
<th>Max Fragment Uniform Blocks:</th>
<td><%= report.maxFragmentUniformBlocks %></td>
</tr>
<tr>
<th>Max Fragment Input Components:</th>
<td><%= report.maxFragmentInputComponents %></td>
</tr>
<tr>
<th>Min Program Texel Offset:</th>
<td><%= report.minProgramTexelOffset %></td>
</tr>
<tr>
<th>Max Program Texel Offset:</th>
<td><%= report.maxProgramTexelOffset %></td>
</tr>
<% } %>
</table>
</div>
<div class="framebuffer">
<h1>Framebuffer</h1>
<table>
<% if (report.webglVersion > 1) { %>
<tr>
<th>Max Draw Buffers:</th>
<td><%= report.maxDrawBuffers %></td>
</tr>
<tr>
<th>Max Color Attachments:</th>
<td><%= report.maxColorAttachments %></td>
</tr>
<tr>
<th>Max Samples:</th>
<td><%= report.maxSamples %></td>
</tr>
<% } else { %>
<tr>
<th>Max Color Buffers:</th>
<td><%= report.maxColorBuffers %></td>
</tr>
<% } %>
<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>
<tr title="Minimum: 2">
<th>Max Anisotropy:</th>
<td><%= report.maxAnisotropy %></td>
</tr>
<% if (report.webglVersion > 1) { %>
<tr>
<th>Max 3D Texture Size:</th>
<td><%= report.max3dTextureSize %></td>
</tr>
<tr>
<th>Max Array Texture Layers:</th>
<td><%= report.maxArrayTextureLayers %></td>
</tr>
<tr>
<th>Max Texture LOD Bias:</th>
<td><%= report.maxTextureLodBias %></td>
</tr>
<% } %>
</table>
</div>
<div class="uniformBuffers">
<h1>Uniform Buffers</h1>
<% if (report.webglVersion < 2) { %>
<div class="comingSoon">
Coming in <a href="https://www.khronos.org/registry/webgl/specs/latest/2.0/">WebGL 2</a>
</div>
<% } else { %>
<table>
<tr>
<th>Max Uniform Buffer Bindings:</th>
<td><%= report.maxUniformBufferBindings %></td>
</tr>
<tr>
<th>Max Uniform Block Size:</th>
<td><%= report.maxUniformBlockSize %></td>
</tr>
<tr>
<th>Uniform Buffer Offset Alignment:</th>
<td><%= report.uniformBufferOffsetAlignment %></td>
</tr>
<tr>
<th>Max Combined Uniform Blocks:</th>
<td><%= report.maxCombinedUniformBlocks %></td>
</tr>
<tr>
<th>Max Combined Vertex Uniform Components:</th>
<td><%= report.maxCombinedVertexUniformComponents %></td>
</tr>
<tr>
<th>Max Combined Fragment Uniform Components:</th>
<td><%= report.maxCombinedFragmentUniformComponents %></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 class="extension" href="<%= getExtensionUrl(e) %>"><%= e %></a>
</td>
</tr>
<% }) %>
<tr>
<td colspan="2">
<br />
<%= report.draftExtensionsInstructions %>
</td>
</tr>
<% if (report.webglVersion === 2) { %>
<tr>
<th colspan="2"><br /><a href="https://www.khronos.org/registry/webgl/specs/latest/2.0/">WebGL 2</a> Functions Implementation Status:</th>
</tr>
<tr>
<td></td>
<td>
<p><%= report.webgl2Status %></p>
</td>
</tr>
<% _.each(report.webgl2Functions, function(e) { %>
<tr>
<td></td>
<td>
<a class="<%= e.className %>" href="<%= getWebGL2ExtensionUrl(e.name) %>"><%= e.name %></a>
</td>
</tr>
<% }); %>
<% } %>
<% } %>
</table></div>
</script>
<script type="text/template" id="webglSupportedTemplate">
<div class="header">
<p>✓ This browser supports WebGL <%= report.webglVersion %></p>
</div>
</script>
<script type="text/template" id="webglSupportedChromeFrameTemplate">
<div class="header">
<p>✓ This browser supports WebGL <%= report.webglVersion %> with Chrome Frame.</p>
</div>
</script>
<script type="text/template" id="webglNotSupportedTemplate">
<div class="header">
<p>× This browser does not support WebGL <%= report.webglVersion %></p>
<% if (report.webglVersion === 2 && report.userAgent.indexOf('Firefox') !== -1) { %>
<p>
To enable WebGL 2 in Firefox, see <a href="https://wiki.mozilla.org/Platform/GFX/WebGL2">https://wiki.mozilla.org/Platform/GFX/WebGL2</a>.
</p>
<% } else { %>
<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>
<% } %>
</div>
</script>
<script type="text/template" id="webglNotEnabledTemplate">
<div class="header">
<p>× This browser supports WebGL <%= report.webglVersion %>, 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>
</div>
</script>
<script type="text/template" id="webglVersionTabs">
<div class="webglVersionTabs">
<a href="?v=1" class="<%= report.webglVersion === 1 ? 'active' : '' %>">WebGL 1</a>
<a href="?v=2" class="<%= report.webglVersion === 2 ? 'active' : '' %>">WebGL 2</a>
</div>
</script>
<a href="https://github.com/AnalyticalGraphicsInc/webglreport" target="_blank"><img style="position: absolute; top: 0; right: 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="main-output" id="output">
</div>
<script type="text/javascript">
var _noJS = document.getElementById('javascript_disabled');
_noJS.parentNode.removeChild(_noJS);
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-J8WBKY4K3W"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-J8WBKY4K3W');
</script>
</body>
</html>