WGSL Reflection Library

JSON →
library 1.2.3 ·javascript
verified May 27, 2026

wgsl_reflect is a JavaScript and TypeScript library designed for parsing and reflecting WebGPU Shading Language (WGSL) shaders. It provides comprehensive static analysis of WGSL code, extracting critical metadata such as bind group layouts, resource bindings, uniform buffer structures, and the members, types, sizes, and offsets of these structures. This functionality is particularly valuable for WebGPU developers as the standard WebGPU API lacks built-in shader reflection capabilities, making dynamic buffer creation and data layout challenging. The library is actively maintained, with version 1.2.3 being the current stable release, and it generally follows semantic versioning. It serves as an essential tool for dynamically inspecting shader interfaces, streamlining the setup of GPU resources from JavaScript, and integrating with higher-level WebGPU frameworks.

total hits 22
actors 8 distinct systems
last hit 22h ago human
GPTBot
5
MetaBot
4
ChatGPT-User
3
Script
1
Search engines
3
Humans
2

top countries 🇺🇸 United States · 🇦🇺 Australia · 🇨🇦 Canada · 🇯🇵 Japan · 🇩🇪 Germany