MCPcopy Create free account
hub / github.com/gpujs/gpu.js / getFragmentShader

Method getFragmentShader

src/backend/web-gl/kernel.js:1478–1483  ·  view source on GitHub ↗

* @desc Get the fragment shader String. * If the String hasn't been compiled yet, * then this method compiles it as well * * @param {Array} args - The actual parameters sent to the Kernel * @returns {string} Fragment Shader string

(args)

Source from the content-addressed store, hash-verified

1476 * @returns {string} Fragment Shader string
1477 */
1478 getFragmentShader(args) {
1479 if (this.compiledFragmentShader !== null) {
1480 return this.compiledFragmentShader;
1481 }
1482 return this.compiledFragmentShader = this.replaceArtifacts(this.constructor.fragmentShader, this._getFragShaderArtifactMap(args));
1483 }
1484
1485 /**
1486 * @desc Get the vertical shader String

Callers 1

buildMethod · 0.95

Calls 2

replaceArtifactsMethod · 0.95

Tested by

no test coverage detected