228 points · by adamnemecek · 4y ago · 35 comments
It's not the prettiest, and writing the initial Javascript code is that I'm using as the template for adding data is kind of a pain, so possibly being able to write the entire application in native Rust would be really awesome.
Vector tiles are just much cooler! :D
You could look at storing them as a cloud optimised geotiff (COG) and then adding them directly into your web map.
This doesn't invalidate your point, I just think when you say "yet another cross-platform abstraction" you're implying that this is an xkcd "now there are 15 standards" situation, when in reality the competition is basically just ancient versions of OpenGL. And OpenGL is effectively deprecated--Khronos has no plans to release any more major updates. Unfortunately, without the browser usecase bringing many of the stakeholders on board, there is not a lot of money in this kind of work, which is why there aren't any serious competitors.
WebGPU as proposed by Apple was basically Metal. Naturally other vendors weren't keen on implementing this, so they arrived at a compromise which is a bastard child of Metal and Vulkan.
They couldn't even adopt an existing shader language and invented a new one. That goes as far as invent new and unprecedented language constructs https://github.com/gpuweb/gpuweb/issues/569
WebGL 2.0 is a subset of OpenGL ES 3.0, meaning 2011 mobile GPUs.
WebGPU 1.0 is a subset of Vulkan/Metal/DX 12, meaning 2016 GPUs. And on top, you get a new C++/Rust flavoured shading language, throwing away all shaders created for WebGL.
If you want top graphics on the Web, the answer is surprise, surprise, server side rendering to textures with native 3D APIs alongside data streaming.
Some Rust folks are pushing to run WebGPU outside of the browser, that is all.
Native OS 3D APIs are the same business as always.
The rust community needed a cross-platform layer and built it.
badass, perfect. get that hardware cranking! another very excellent use for wgpu!
Mapr seems to be really great if you want to use the same framework for each platform you're building for