This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Adding numbers with WebGL2 Transform Feedback</title> | |
</head> | |
<body> | |
<h1>Adding numbers with WebGL2 Transform Feedback.</h1> | |
<output></output> | |
<script src="webgl.js"></script> | |
<p>View <a href="webgl.js">the commented source</a>!</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on and inspired by https://github.com/CesiumGS/webglreport | |
// https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants | |
const WebGLConstants = [ | |
'ALIASED_LINE_WIDTH_RANGE', | |
'ALIASED_POINT_SIZE_RANGE', | |
'ALPHA_BITS', | |
'BLUE_BITS', | |
'DEPTH_BITS', | |
'GREEN_BITS', |