WebGPU Type Definitions #
Opaque types for WebGPU resources. Resources are managed via Lean External objects with automatic cleanup by finalizers on the C++ side.
Opaque handle to a WebGPU Instance (Dawn native instance) with automatic cleanup via External finalizer
GPU work completion Future that maintains a reference to its parent Instance. This ensures the Instance stays alive while waiting for GPU work to complete.
Instances For
WebGPU Device that maintains a reference to its parent Instance. This ensures the Instance stays alive as long as the Device is in use, preventing premature garbage collection that would cause segfaults.
Instances For
WebGPU Buffer that maintains a reference to its parent Device. This ensures Device (and Instance) stay alive while Buffer is in use.
Instances For
WebGPU Shader Module that maintains a reference to its parent Device.
- ptr : ShaderModulePtr
- parentDevice : Device
Instances For
WebGPU Compute Pipeline that maintains a reference to its parent Device.
- ptr : ComputePipelinePtr
- parentDevice : Device
Instances For
WebGPU Bind Group that maintains a reference to its parent Device.
- ptr : BindGroupPtr
- parentDevice : Device
Instances For
WebGPU Bind Group Layout that maintains a reference to its parent Device.
- ptr : BindGroupLayoutPtr
- parentDevice : Device
Instances For
WebGPU Command Encoder that maintains a reference to its parent Device.
- ptr : CommandEncoderPtr
- parentDevice : Device
Instances For
Buffer usage flags
- storage : BufferUsage
- uniform : BufferUsage
- copyDst : BufferUsage
- copySrc : BufferUsage
- mapRead : BufferUsage
- mapWrite : BufferUsage
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Hesper.WebGPU.instBEqBufferUsage.beq x✝ y✝ = (x✝.ctorIdx == y✝.ctorIdx)
Instances For
Equations
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Hesper.WebGPU.instBEqShaderStage.beq x✝ y✝ = (x✝.ctorIdx == y✝.ctorIdx)
Instances For
Equations
Binding type for bind group layout
- buffer (readOnly : Bool) : BindingType
- uniformBuffer : BindingType
- sampler : BindingType
- texture : BindingType
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- Hesper.WebGPU.instBEqBindingType.beq (Hesper.WebGPU.BindingType.buffer a) (Hesper.WebGPU.BindingType.buffer b) = (a == b)
- Hesper.WebGPU.instBEqBindingType.beq Hesper.WebGPU.BindingType.uniformBuffer Hesper.WebGPU.BindingType.uniformBuffer = true
- Hesper.WebGPU.instBEqBindingType.beq Hesper.WebGPU.BindingType.sampler Hesper.WebGPU.BindingType.sampler = true
- Hesper.WebGPU.instBEqBindingType.beq Hesper.WebGPU.BindingType.texture Hesper.WebGPU.BindingType.texture = true
- Hesper.WebGPU.instBEqBindingType.beq x✝¹ x✝ = false