(passEncoder)
| 165 | }; |
| 166 | |
| 167 | const render: HighlightRenderer['render'] = (passEncoder) => { |
| 168 | assertNotDisposed(); |
| 169 | if (!visible) return; |
| 170 | if (!hasPrepared) return; |
| 171 | if (lastCanvasWidth <= 0 || lastCanvasHeight <= 0) return; |
| 172 | if (lastScissor.w === 0 || lastScissor.h === 0) return; |
| 173 | |
| 174 | passEncoder.setScissorRect(lastScissor.x, lastScissor.y, lastScissor.w, lastScissor.h); |
| 175 | passEncoder.setPipeline(pipeline); |
| 176 | passEncoder.setBindGroup(0, bindGroup); |
| 177 | passEncoder.draw(3); |
| 178 | passEncoder.setScissorRect(0, 0, lastCanvasWidth, lastCanvasHeight); |
| 179 | }; |
| 180 | |
| 181 | const setVisible: HighlightRenderer['setVisible'] = (v) => { |
| 182 | assertNotDisposed(); |
nothing calls this directly
no test coverage detected