mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
1.1 KiB
1.1 KiB
ComputePass
:::caution The luma.gl v9 API is currently in public review and may be subject to change. :::
:::info WebGPU only :::
A pass on which to run computations with compute pipelines.
Types
ComputePassProps
| Property | Type | Description |
|---|---|---|
| N/A |
Members
device:Device- holds a reference to theDevicethat created thisComputePass.handle:unknown- holds the underlying WebGL or WebGPU shader objectprops:ComputePassProps- holds a copy of theComputePassPropsused to create thisComputePass.
Methods
constructor(props: ComputePassProps)
ComputePass is an abstract class and cannot be instantiated directly. Create with device.beginComputePass(...).
endPass(): void
Free up any GPU resources associated with this render pass.
pushDebugGroup(groupLabel: string): void
Adds a debug group (implementation dependent).
popDebugGroup(): void
Removes a debug group (implementation dependent).
insertDebugMarker(markerLabel: string): void
Adds a debug marker (implementation dependent).