UNPKG

229 BJavaScriptView Raw
1function compileShader(gl, type, src) {
2 const shader = gl.createShader(type);
3 gl.shaderSource(shader, src);
4 gl.compileShader(shader);
5 return shader;
6}
7
8export { compileShader };
9//# sourceMappingURL=compileShader.mjs.map