@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.
Related imports
@luma.gl/graph/gpu-graph/diagnosticsInspect a compiled graph withinspectGPUGraphCompilation. Observe command encodings withGPUCommandGraphInspector, capture buffers withGPUBufferCapture, and tune kernel selection withGPUCommandGraphAutotuner.