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

Method deleteFramebufferResources

src/webgpu/p5.RendererWebGPU.js:3745–3759  ·  view source on GitHub ↗
(framebuffer)

Source from the content-addressed store, hash-verified

3743 }
3744
3745 deleteFramebufferResources(framebuffer) {
3746 this.flushDraw();
3747 if (framebuffer.colorTexture && framebuffer.colorTexture.destroy) {
3748 const tex = framebuffer.colorTexture;
3749 this._postSubmitCallbacks.push(() => tex.destroy());
3750 }
3751 if (framebuffer.depthTexture && framebuffer.depthTexture.destroy) {
3752 const tex = framebuffer.depthTexture;
3753 this._postSubmitCallbacks.push(() => tex.destroy());
3754 }
3755 if (framebuffer.aaDepthTexture && framebuffer.aaDepthTexture.destroy) {
3756 const tex = framebuffer.aaDepthTexture;
3757 this._postSubmitCallbacks.push(() => tex.destroy());
3758 }
3759 }
3760
3761 getFramebufferToBind(framebuffer) {
3762 }

Callers

nothing calls this directly

Calls 2

flushDrawMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected