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