We have open-sourced an (old) project dubbed Raster2Mesh. Obtain a triangle mesh from pixel shaders, completely on the GPU!

The open-source code can be found at https://github.com/sylefeb/raster2mesh/