UNPKG

pixi.js

Version:

<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">

9 lines (8 loc) 404 B
/** * @private * @param {WebGLRenderingContext} gl - The current WebGL context {WebGLProgram} * @param {number} type - the type, can be either VERTEX_SHADER or FRAGMENT_SHADER * @param {string} src - The vertex shader source as an array of strings. * @returns {WebGLShader} the shader */ export declare function compileShader(gl: WebGLRenderingContextBase, type: number, src: string): WebGLShader;