ComputePipeline
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).