MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / compileShader

Function compileShader

src/tailwind/Animations/SplashCursor/SplashCursor.jsx:205–212  ·  view source on GitHub ↗
(type, source, keywords)

Source from the content-addressed store, hash-verified

203 }
204
205 function compileShader(type, source, keywords) {
206 source = addKeywords(source, keywords);
207 const shader = gl.createShader(type);
208 gl.shaderSource(shader, source);
209 gl.compileShader(shader);
210 if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) console.trace(gl.getShaderInfoLog(shader));
211 return shader;
212 }
213
214 function addKeywords(source, keywords) {
215 if (!keywords) return source;

Callers 2

setKeywordsMethod · 0.70
SplashCursorFunction · 0.70

Calls 2

addKeywordsFunction · 0.70
createShaderMethod · 0.45

Tested by

no test coverage detected