mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
910 B
910 B
ComputePipeline
The luma.gl v9 API is currently in public review.
ComputePipelineis only available on WebGPU. Note that you can still perform many GPU computations on WebGL usingRenderPipeline.
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(props: ComputePipelineProps)
ComputePipeline is an abstract class and cannot be instantiated directly. Create with device.createComputePipeline(...).
destroy(): void
Free up any GPU resources associated with this compute pipeline immediately (instead of waiting for garbage collection).