Replies: 2 comments 5 replies
-
There are no plans to remove WebGL just like there are no plans to remove XMLHTTPRequest, even though XMLHTTPRequest is deprecated. Too many sites would break if they removed WebGL. WebGPU has not shipped yet. The spec is not finished. The API and the shading language are still changing. WebGPU requires higher end GPUs than WebGL so less users will be able to use it. It's also arguably harder to use in many ways. But, yes, WebGL2 will be the last WebGL version and over time most sites that want to do GPU stuff will likely switch to WebGPU over the next 5-6 years. Note that most of the techniques on this site are the same techniques you'd use in WebGPU. You still make vertex shaders, they still output a position. You still make fragment shaders, they still output a color. You still give them the same data (buffers, attributes, unifiorms, textures). What changes is the API calls you use to set things up and you write shaders in WGSL instead of GLSL |
Beta Was this translation helpful? Give feedback.
-
If you'd like to see some differences between WebGL and WebGPU there's this article https://webgpufundamentals.org/webgpu/lessons/webgpu-from-webgl.html The site has no other articles yet and, like I mentioned above, the spec is still changing. Once it's settled down I'll look into converting the applicable WebGL articles to WebGPU |
Beta Was this translation helpful? Give feedback.
-
I been hearing and seeing people and content saying webgl is dead and webGPU is the new wegbl and will replace webgl down the line... is this true? Honestly i kinda know that they removing webgl support is as likely as they start charging people to user web browsers... very unlikely seeing that the web value backwards compatibility, but i wanted to know what the people who manage webgl sites.
Beta Was this translation helpful? Give feedback.
All reactions