WebGL 计算着色器和 VBO/UBO 的

WebGL Compute Shader and VBO/UBO's

AFAIK 是 WebGL 中非常有限的计算着色器模型。这方面的文档更少。我很难找到问题的答案。

是否有可能在一个或多个 VBO/UBO 上执行计算着色器并更改它们的值?

更新:2019 年 4 月 9 日,Khronos 小组发布了 a draft standard for compute shaders in WebGL 2

原回答:

this press release 中,Khronos 小组表示他们正在开发 WebGL 2 的扩展以允许计算着色器:

What’s next? An extension to WebGL 2.0 providing compute shader support is under development, which will bring many leading-edge graphics algorithms to the web. Khronos is also beginning work on the next generation of WebGL, to bring the enhanced performance of the new generation of explicit 3D APIs to the web. Stay tuned for more news!

您最好的选择是等待大约一两年,以便它在有限数量的 GPU + 浏览器组合上发生。