WebGPU Development Guide
Overview
This skill provides references and best practices for developing with WebGPU, WGSL, and WESL.
References
- WebGPU Fundamentals: See references/webgpu-fundamentals.md for core concepts, API structure, and initialization patterns.
- WGSL Specification: See references/wgsl-spec.md for shader language syntax, types, and built-in functions.
- WESL Guide: See references/wesl-guide.md for using the WESL extension language (imports, conditional compilation).
- wgpu (Rust): See references/wgpu-rs-guide.md for the Rust implementation details.
Usage Guidelines
When writing WebGPU code:
- Check Fundamentals: Refer to
webgpu-fundamentals.mdfor proper resource usage (buffers, textures). - Verify WGSL: Use
wgsl-spec.mdto verify built-in function signatures and type compatibility. - Leverage WESL: If the project uses WESL, check
wesl-guide.mdfor syntax. - Rust Implementation: For Rust-specific API questions, consult
wgpu-rs-guide.md.
External Resources (Reference Only)
- Spec: https://www.w3.org/TR/webgpu/
- Fundamentals: https://webgpufundamentals.org/
- Best Practices: https://toji.dev/webgpu-best-practices/
- WGSL: https://www.w3.org/TR/WGSL/
- WESL: https://wesl-lang.dev/
- wgpu (Rust): https://wgpu.rs/
Source: fazil47/wgpu-renderer — distributed by TomeVault.