WGSL Reflection Library
JSON →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.
Traffic · last 30 days ↓54% vs prev 7d
top countries 🇺🇸 United States · 🇦🇺 Australia · 🇨🇦 Canada · 🇯🇵 Japan · 🇩🇪 Germany