memononen / nanovg

Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
zlib License
5.15k stars 771 forks source link

Add WGPU support #577

Open porky11 opened 4 years ago

porky11 commented 4 years ago

WGPU is a simple graphics API like OpenGL written for C (in rust). Compared to OpenGL it has a cleaner design, more modern like vuklan and similar, and more efficeient,

lain-dono commented 4 years ago

I'm working on it. https://github.com/lain-dono/reui However, the API is not compatible.

I'll probably have to completely rewrite the tesselator, since nanovg relies on TRIANGLE_FAN, which is not in the WebGPU.

porky11 commented 4 years ago

@lain-dono oh, nice. I wouldn't mind if it has a different API but similar features. But I might want to use it from a non-rust language, so I don't think, I'll have a use for that :(