Skip to main content

Module wgpu

Module wgpu 

Source
Expand description

WebGPU backend implementation for GPU operations

This module provides WebGPU-specific implementations for cross-platform GPU operations.

Structs§

WebGPUContext
WebGPU context wrapper
WgpuComputePipeline
A compiled WebGPU compute pipeline, containing all state needed to dispatch a compute shader.

Constants§

GEMM_SHADER_WGSL
WGSL source for the GEMM kernel (tiled 8×8 matrix multiply).

Functions§

run_vector_add_wgsl
Run a vector-add compute shader end-to-end on the GPU.
try_compile_wgsl
Attempt to compile source as a WGSL compute shader and return a WgpuComputePipeline.