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).
wgsl有类似与glsl的宏定义语法吗?
暂时没有 目前只能自行字符串拼接,社区里也有一些工具尝试提供方便的处理,e.g. https://github.com/toji/wgsl-preprocessor
或者自己写一些简单的模块来做 wgsl 预处理
@shuangliu 谢谢,很好的建议