MCPcopy Index your code
hub / github.com/gpujs/gpu.js / _replaceOutputTexture

Method _replaceOutputTexture

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

* * @desc replace output textures where arguments my be the same values

()

Source from the content-addressed store, hash-verified

696 * @desc replace output textures where arguments my be the same values
697 */
698 _replaceOutputTexture() {
699 if (this.texture.beforeMutate() || this._textureSwitched) {
700 const gl = this.context;
701 gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, this.texture.texture, 0);
702 this._textureSwitched = false;
703 }
704 }
705
706 /**
707 * @desc Setup output texture

Callers 1

runMethod · 0.95

Calls 1

beforeMutateMethod · 0.80

Tested by

no test coverage detected