Do you mean a Dart UI framework rendering to WebGL? Or compiling a Dart function to a pixelshader?
Last year I worked on a project which has a JS to GLSL compiler, using the Acorn JS parser (
https://github.com/ternjs/acorn). The architect of that platform created an improved version of the framework, where the full browser UI is rendered in WebGL. Check this demo (still alpha quality), but shows the idea.
https://makepad.github.io/makepad.html
Open the examples node, click on `shiny.js`, and then the run icon above the code editor. You'll see buttons rendering in the preview pane, where the button background is rendered using the pixelstyle property (gradient for border, pixelshader for background):
- Raju