MCPcopy
hub / github.com/processing/p5.js / _finishActiveRenderPass

Method _finishActiveRenderPass

src/webgpu/p5.RendererWebGPU.js:617–630  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

615 }
616
617 _finishActiveRenderPass() {
618 if (!this.activeRenderPass) return;
619
620 const commandEncoder = this.activeRenderPassEncoder;
621 const passEncoder = this.activeRenderPass;
622 passEncoder.end();
623
624 // Store the command encoder for later submission
625 this._pendingCommandEncoders.push(commandEncoder.finish());
626 this.activeRenderPassEncoder = null;
627 this.activeRenderPass = null;
628 this.activeShader = null;
629 this.activeShaderOptions = null;
630 }
631
632 clear(...args) {
633 if (!this.device || !this.drawingContext) return;

Callers 7

clearMethod · 0.95
clearDepthMethod · 0.95
flushDrawMethod · 0.95
_clearClipBufferMethod · 0.95
computeMethod · 0.95

Calls 3

endMethod · 0.80
finishMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected