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

Method getVertexShader

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

* @desc Get the vertical shader String * @param {Array|IArguments} args - The actual parameters sent to the Kernel * @returns {string} Vertical Shader string

(args)

Source from the content-addressed store, hash-verified

1488 * @returns {string} Vertical Shader string
1489 */
1490 getVertexShader(args) {
1491 if (this.compiledVertexShader !== null) {
1492 return this.compiledVertexShader;
1493 }
1494 return this.compiledVertexShader = this.replaceArtifacts(this.constructor.vertexShader, this._getVertShaderArtifactMap(args));
1495 }
1496
1497 /**
1498 * @desc Returns the *pre-compiled* Kernel as a JS Object String, that can be reused.

Callers 1

buildMethod · 0.95

Calls 2

replaceArtifactsMethod · 0.95

Tested by

no test coverage detected