MCPcopy Index your code
hub / github.com/processing/p5.js / _deleteFramebufferTexture

Method _deleteFramebufferTexture

src/webgpu/p5.RendererWebGPU.js:3730–3738  ·  view source on GitHub ↗
(texture)

Source from the content-addressed store, hash-verified

3728 }
3729
3730 _deleteFramebufferTexture(texture) {
3731 this.flushDraw();
3732 const handle = texture.rawTexture();
3733 if (handle.texture && handle.texture.destroy) {
3734 const tex = handle.texture;
3735 this._postSubmitCallbacks.push(() => tex.destroy());
3736 }
3737 this.textures.delete(texture);
3738 }
3739
3740 deleteFramebufferTextures(framebuffer) {
3741 this._deleteFramebufferTexture(framebuffer.color)

Callers 1

Calls 4

flushDrawMethod · 0.95
rawTextureMethod · 0.80
deleteMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected