Skip to main content

Module webgpu_compat

Module webgpu_compat 

Source
Expand description

WebGPU compatibility layer for WASM targets.

On wasm32 targets, wgpu uses the WebGPU API. This module provides compile-time shader registration and capability structs that describe conservative GPU limits for cross-platform code.

Structsยง

GpuCapabilities
GPU feature capabilities descriptor.
ShaderRegistry
Shader source registry for all built-in compute shaders.