Hello.
I have a use case where I need to draw some 3d content on a Skia canvas. So far I've been using other libraries to create an api dependent texture and transferring it to Skia as a SkImage, but this has proven to be very problematic because of the different ways to do so on the different platforms and gpu apis.
I'm very interested in using SkMesh because it offers most of what I need to render the 3d content, while not having to worry about any context switching or synchronization.
However there is a key missing feature that's stopping me from migrating everything to pure skia and that is : texture support in shader code.
Would it possible to add image support to vertex/fragment programs supplied to a SkMeshSpecification ? I'd say something to achieve the same functionality as SkImage::makeRawShader is all that's needed for my use case.
Of course it would be great to also have full effect support, colorspace conversion, other sampler types like samplerCube, level of details... but none of this is really as important since it can be implemented on top of basic texture support.
Also I remember SkMesh being added a while back under the name SkVertices3d, only to be removed, so I'm glad it's back now. Just wish we could get image support, because otherwise it's really such a great feature :)
Thanks in advance.