MCPcopy Create free account
hub / github.com/galacean/engine / cache

Method cache

packages/core/src/shader/ShaderProgramPool.ts:58–60  ·  view source on GitHub ↗

* Cache the shader program. * * @remarks * The method must return an empty value after calling get() to run normally. * * @param shaderProgram - shader program

(shaderProgram: ShaderProgram)

Source from the content-addressed store, hash-verified

56 * @param shaderProgram - shader program
57 */
58 cache(shaderProgram: ShaderProgram): void {
59 this._lastQueryMap[this._lastQueryKey] = shaderProgram;
60 }
61
62 /**
63 * @internal

Callers 1

_getShaderProgramMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected