MCPcopy Create free account
hub / github.com/ChartGPU/ChartGPU / render

Function render

src/renderers/createAreaRenderer.ts:263–271  ·  view source on GitHub ↗
(passEncoder)

Source from the content-addressed store, hash-verified

261 };
262
263 const render: AreaRenderer['render'] = (passEncoder) => {
264 assertNotDisposed();
265 if (!vertexBuffer || vertexCount < 4) return;
266
267 passEncoder.setPipeline(pipeline);
268 passEncoder.setBindGroup(0, bindGroup);
269 passEncoder.setVertexBuffer(0, vertexBuffer);
270 passEncoder.draw(vertexCount);
271 };
272
273 const dispose: AreaRenderer['dispose'] = () => {
274 if (disposed) return;

Callers

nothing calls this directly

Calls 1

assertNotDisposedFunction · 0.70

Tested by

no test coverage detected