/** * @module {{{module}}}/Locations */ // This file is automatically generated, do not edit // Run `make shaders` to generate, and commit the result. import {DEBUG_WEBGL} from '../../../../index.js'; /** * @constructor * @param {WebGLRenderingContext} gl GL. * @param {WebGLProgram} program Program. * @struct */ const Locations = function(gl, program) { {{#uniforms}} /** * @type {WebGLUniformLocation} */ this.{{originalName}} = gl.getUniformLocation( program, DEBUG_WEBGL ? '{{originalName}}' : '{{shortName}}'); {{/uniforms}} {{#attributes}} /** * @type {number} */ this.{{originalName}} = gl.getAttribLocation( program, DEBUG_WEBGL ? '{{originalName}}' : '{{shortName}}'); {{/attributes}} }; export default Locations;