(shader)
| 1684 | } |
| 1685 | |
| 1686 | _returnShaderBuffersToPool(shader) { |
| 1687 | if (shader._uniformBufferGroups) { |
| 1688 | for (const bufferGroup of shader._uniformBufferGroups) { |
| 1689 | while (bufferGroup.nextBufferPool.length > 0) { |
| 1690 | bufferGroup.bufferPool.push(bufferGroup.nextBufferPool.pop()); |
| 1691 | } |
| 1692 | for (const bufferInfo of bufferGroup.buffersInUse.keys()) { |
| 1693 | if (bufferInfo !== bufferGroup.currentBuffer) { |
| 1694 | bufferGroup.nextBufferPool.push(bufferInfo); |
| 1695 | } |
| 1696 | } |
| 1697 | bufferGroup.buffersInUse.clear(); |
| 1698 | if (bufferGroup.currentBuffer) { |
| 1699 | bufferGroup.buffersInUse.add(bufferGroup.currentBuffer); |
| 1700 | } |
| 1701 | } |
| 1702 | } |
| 1703 | } |
| 1704 | |
| 1705 | flushDraw() { |
| 1706 | this._finishActiveRenderPass(); |
no test coverage detected