Skip to main content

GPU Graph module

@luma.gl/graph lets you describe a GPU computation as a graph of operations. One operation can produce a value that another consumes directly on the GPU. For example, you can filter rows, aggregate the selected values, and pass the result to a rendering step without reading the intermediate data back to JavaScript.

Start with Getting started with graphs to declare an input vector, add two operations, and run the graph. You can compile the graph once and supply new inputs on each run.

Choose an entry point​

Entry pointWhat it provides
/gpu-dataBuffer-backed data, vectors, and tables that preserve batch boundaries.
/gpu-graphWebGPU graphs with named inputs and outputs, compute and render operations, mutable state, and GPU-controlled branches and loops.
/gpu-simple-graphPortable expression graphs and lazy data and vector evaluators.
/arrowAdapters for moving Apache Arrow data into and out of GPU storage.

GPU Graph Modules provide operations for tasks such as reductions, SQL queries, raster processing, and physics simulation. The GPU Graph Cookbook shows how to combine operations in an application.