Hi, I'm wondering if there is a simple example somewhere of connecting a Skia render context (backend/GL, preferably) to an SDL3 texture? I found a couple of older things laying around which no longer build/function due to API changes. And unfortunately, the relevant parts of the Skia code seem to be completely undocumented =/ It would probably be fine to have any examples at all of a working program that uses a GL backend in current-version Skia, I can work out the pixel format / memory management myself easily if I know how to actually use Skia.
My current understanding of this is that I want to create a GrGLInterface and GrDirectContext, get a GrBackendRenderTarget, and then create a surface from some memory pointer that SDL3 / other client library is maintaining. But I cannot figure out how to get the surface - older code uses SkSurface::MakeFromBackendRenderTarget() which seems straightforward, but has been removed.
On the other hand, it seems as though Ganesh/Gr* is being deprecated in favor of "Graphite"? But I find no documentation or examples of using graphite at all,. anywhere.
Is there a simple example of getting Skia to render to a GL backend with user-meanaged memory, suitable for rendering to an SDL3 texture, somehwere? Or can anyone at least point me in the right direction here?