UNPKG

404 BTypeScriptView Raw
1/**
2 * @private
3 * @param {WebGLRenderingContext} gl - The current WebGL context {WebGLProgram}
4 * @param {number} type - the type, can be either VERTEX_SHADER or FRAGMENT_SHADER
5 * @param {string} src - The vertex shader source as an array of strings.
6 * @returns {WebGLShader} the shader
7 */
8export declare function compileShader(gl: WebGLRenderingContextBase, type: number, src: string): WebGLShader;