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).
@zmr wgsl里可以直接进行matrix矩阵相乘运算 https://www.orillusion.com/zh/wgsl.html#arithmetic-expr
多说一点,任何代码其实只是一行行的string character,最后都会通过编译器编译成对应的assembly,然后再去执行。矩阵乘法运算就是对应到wgsl里面build-in的function
另外,js不支持符号重载,就是不可以对已有的运算符重新进行定义。所以做运算最好通过function来实现