API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classWebGpuComputePipeline

@codexo/exojs / rendering / stable

Owning wrapper around a `GPUComputePipeline` plus its bind-group layout. Created once per shader; multiple bind groups can be bound per dispatch to render different particle systems with the same pipeline. Construct via create; do not call `new GPUComputePipeline` directly elsewhere.

4
props
3
methods
0
events
Import
import { WebGpuComputePipeline } from '@codexo/exojs'

Owning wrapper around a `GPUComputePipeline` plus its bind-group layout. Created once per shader; multiple bind groups can be bound per dispatch to render different particle systems with the same pipeline.

Construct via create; do not call `new GPUComputePipeline` directly elsewhere.

Constructors 1
new(device: GPUDevice, pipeline: GPUComputePipeline, bindGroupLayout: GPUBindGroupLayout, workgroupSize: number): WebGpuComputePipeline
Methods 3
createBindGroup(entries: readonly object[], label?: string): GPUBindGroup
dispatch(passEncoder: GPUComputePassEncoder, itemCount: number): void
create(device: GPUDevice, opts: object): WebGpuComputePipeline
Properties 4
bindGroupLayout: GPUBindGroupLayout
device: GPUDevice
pipeline: GPUComputePipeline
workgroupSize: number
Source