MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / render

Function render

src/renderers/createLineRenderer.ts:202–210  ·  view source on GitHub ↗
(passEncoder)

Source from the content-addressed store, hash-verified

200 };
201
202 const render: LineRenderer['render'] = (passEncoder) => {
203 assertNotDisposed();
204 if (!currentVertexBuffer || currentVertexCount < 2) return;
205
206 passEncoder.setPipeline(pipeline);
207 passEncoder.setBindGroup(0, bindGroup);
208 passEncoder.setVertexBuffer(0, currentVertexBuffer);
209 passEncoder.draw(currentVertexCount);
210 };
211
212 const dispose: LineRenderer['dispose'] = () => {
213 if (disposed) return;

Callers

nothing calls this directly

Calls 1

assertNotDisposedFunction · 0.70

Tested by

no test coverage detected