()
| 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; |
no test coverage detected