Expand description
WebGPU backend implementation for GPU operations
This module provides WebGPU-specific implementations for cross-platform GPU operations.
Structs§
- WebGPU
Context - WebGPU context wrapper
- Wgpu
Compute Pipeline - 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
sourceas a WGSL compute shader and return aWgpuComputePipeline.