WebGPU frameworks for 2D graphics with BabylonJS

Hello,

I’m looking for a way to integrate 2D graphics with BabylonJS - ideally some way to draw polygons, strokes and lines in 2D and share a texture into BabylonJS within WebGPU context.

Best I could see is Contrast Renderer, though this is for Rust (with Emscripten example):

And others I’ve been looking into are Fabric, PIXI - perhaps even an SVG lib (if there is an elegant way to get this into a texture).

Looking for suggestions or ideas!

You should be able to use their canvas element into an HtmlElementTexture within babylon ?

For sure, however it doesn’t have a JS interface (must be written in Rust) - perhaps makes sense to do this in Babylon with an orthographic camera