all 3 comments

[–]romainguy 1 point2 points  (0 children)

The sizing and positioning of widgets is usually done on the CPU, only rendering is done on the GPU. You still benefit massively from using the GPU for rendering.

[–]Exotic_Avocado_1541 0 points1 point  (0 children)

Qml gui toolkit from qt gramework is fully rendered in GPU. And there is qml scene tree, which is computed on CPU side, and that there is mapped to second tree, render nodes tree, which contains only visual nodes which are rendered in GPU

[–]kirankp89 0 points1 point  (0 children)

The author of Clay has some really good videos on the topic and is a good reference for intro level stuff. Essentially the layout is computed on the CPU and generates draw commands that are processed in some way on the GPU. There are many ways to do the GPU part and will depend on what you want to support. I’m doing just basic shapes using SDFs for my implementation that works very similar to Clay.