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

Function addKeywords

src/content/Animations/SplashCursor/SplashCursor.jsx:217–224  ·  view source on GitHub ↗
(source, keywords)

Source from the content-addressed store, hash-verified

215 }
216
217 function addKeywords(source, keywords) {
218 if (!keywords) return source;
219 let keywordsString = '';
220 keywords.forEach(keyword => {
221 keywordsString += '#define ' + keyword + '\n';
222 });
223 return keywordsString + source;
224 }
225
226 const baseVertexShader = compileShader(
227 gl.VERTEX_SHADER,

Callers 1

compileShaderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected