MCPcopy Index your code
hub / github.com/PavelDoGreat/WebGL-Fluid-Simulation / compileShader

Function compileShader

script.js:418–429  ·  view source on GitHub ↗
(type, source, keywords)

Source from the content-addressed store, hash-verified

416}
417
418function compileShader (type, source, keywords) {
419 source = addKeywords(source, keywords);
420
421 const shader = gl.createShader(type);
422 gl.shaderSource(shader, source);
423 gl.compileShader(shader);
424
425 if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS))
426 console.trace(gl.getShaderInfoLog(shader));
427
428 return shader;
429};
430
431function addKeywords (source, keywords) {
432 if (keywords == null) return source;

Callers 2

setKeywordsMethod · 0.85
script.jsFile · 0.85

Calls 1

addKeywordsFunction · 0.85

Tested by

no test coverage detected