Skip to main content

@luma.gl/graph/gpu-graph

Import GPUGraph and operations such as gpuExpression here to declare inputs, compose operations, and compile a reusable graph. Use the same entry when writing a custom operation lowering or working directly with command passes, resource handles, and scheduling. A lowering can implement one logical operation as several physical passes.

For an overview of graph inputs, operations, and control flow, start with the GPU Graph guide. The getting started tutorial walks through compiling and running a graph. Use run() for graph-managed submission. When compiledGraph.supportsCallerOwnedEncoding is true, use prepare() to append commands to your own encoder.

For standalone compute or render work, this entry also exports kernels and execution helpers, including Kernel, RenderKernel, and GPUReadbackRing.

  • @luma.gl/graph/gpu-graph/diagnostics Inspect a compiled graph with inspectGPUGraphCompilation. Observe command encodings with GPUCommandGraphInspector, capture buffers with GPUBufferCapture, and tune kernel selection with GPUCommandGraphAutotuner.