e25e61c3b7
And remove the now unneeded NAMESPACE variable
35 lines
764 B
Plaintext
35 lines
764 B
Plaintext
/**
|
|
* @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;
|