UNPKG

920 BSource Map (JSON)View Raw
1{"version":3,"file":"compileShader.mjs","sources":["../../../src/shader/utils/compileShader.ts"],"sourcesContent":["/**\n * @private\n * @param {WebGLRenderingContext} gl - The current WebGL context {WebGLProgram}\n * @param {number} type - the type, can be either VERTEX_SHADER or FRAGMENT_SHADER\n * @param {string} src - The vertex shader source as an array of strings.\n * @returns {WebGLShader} the shader\n */\nexport function compileShader(gl: WebGLRenderingContextBase, type: number, src: string): WebGLShader\n{\n const shader = gl.createShader(type);\n\n gl.shaderSource(shader, src);\n gl.compileShader(shader);\n\n return shader;\n}\n"],"names":[],"mappings":"AAO8B,SAAA,aAAA,CAAA,EAAA,EAA+B,MAAc,GAC3E,EAAA;AACI,EAAM,MAAA,MAAA,GAAS,EAAG,CAAA,YAAA,CAAa,IAAI,CAAA,CAAA;AAEnC,EAAG,EAAA,CAAA,YAAA,CAAa,QAAQ,GAAG,CAAA,CAAA;AAC3B,EAAA,EAAA,CAAG,cAAc,MAAM,CAAA,CAAA;AAEvB,EAAO,OAAA,MAAA,CAAA;AACX;;;;"}
\No newline at end of file