WIP. Expand DrawingBackend API and Canvas.#377
WIP. Expand DrawingBackend API and Canvas.#377JimBobSquarePants wants to merge 87 commits intomainfrom
Conversation
This means that it would be of key importance to validate the API with a simple GUI app that truly challenges the rendering engine! I just made this thing with Claude*. We need an equivalent C# app. It can of course do something else (as long as it does mass text rendering!), but we need to make sure we have an HTML5 reference app, and that its' functionality is kept in sync with our C# app's, so we can compare them.
We don't need it to be production ready, but if we find performance bottlenecks, we should identify where is the root cause: suboptimal backend implementation VS the API shape VS our library code. I can chime in into this work later, but not right now. *disclaimer: didn't spend time on deslopification |
Prerequisites
Description
WIP - Still lots of normalization and testing to do!
This PR expand on the backend drawing API and drawing canvas to normalize usage throughout the library and to better allow custom backends both CPU and GPU.
There's an experimental WebGPU backend in the repo but it's nowhere near production ready so serves simply as a dogfooding tool for the API design. Our new CPU backend is more than fast enough for most usage.