mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
1011 B
1011 B
ComputePipeline
:::caution The luma.gl v9 API is currently in public review and may be subject to change. :::
:::info
ComputePipeline is only available on WebGPU. Note that you can still perform
many GPU computations on WebGL using RenderPipeline.
:::
A ComputePipeline holds a compiled and linked compute shader.
Members
device:Device- holds a reference to the device that created this resourcehandle:unknown- holds the underlying WebGL or WebGPU objectprops:ComputePipelineProps- holds a copy of theComputePipelinePropsused to create thisComputePipeline.
Methods
constructor()
ComputePipeline is an abstract class and cannot be instantiated directly. Create with
const computePipeline = device.createComputePipeline({...})
destroy(): void
destroy(): void
Free up any GPU resources associated with this compute pipeline immediately (instead of waiting for garbage collection).