Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
@shuangliu 十分感谢,插件的思路确实是预处理WGSL文本得到反射类型的,很受启发
WebGPU里当前没有类似getActiveAttrib/getActiveUniform接口,无法预判ShaderModule里属性的location和数据类型,这样封装接口的时候就还是需要开发者填入Layout信息比较麻烦啊。
难道需要自行开发一个WGSL文本解析器么?