Is there a GPU-friendly equivalent of SkBitmap->makeShader(), so I can use an SkCanvas or its SkSurface as a shader?
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/74500bd2-f7bd-4493-8683-d6d082cece31%40googlegroups.com.
SkImage::MakeFromBitmap(bitmap)->makeTextureImage(<grcontext>)->makeShader();
On Wed, Oct 23, 2019 at 2:16 PM BenP <ben...@gmail.com> wrote:
Is there a GPU-friendly equivalent of SkBitmap->makeShader(), so I can use an SkCanvas or its SkSurface as a shader?--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-d...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/d8fa778d-4455-49a2-9536-6774ad2ce2b5%40googlegroups.com.
Oh gotcha... Then just do surface->makeImageSnapshot()->makeShader()
On Wed, Oct 23, 2019 at 2:34 PM BenP <ben...@gmail.com> wrote:
Thanks Brian...--There is no bitmap. I've drawn to an SkSurface/SkCanvas, and now wish to use that as a shader. I'd like to avoid the CPU.B.
On Wednesday, October 23, 2019 at 7:20:16 PM UTC+1, Brian Salomon wrote:SkImage::MakeFromBitmap(bitmap)->makeTextureImage(<grcontext>)->makeShader();On Wed, Oct 23, 2019 at 2:16 PM BenP <ben...@gmail.com> wrote:Is there a GPU-friendly equivalent of SkBitmap->makeShader(), so I can use an SkCanvas or its SkSurface as a shader?--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/74500bd2-f7bd-4493-8683-d6d082cece31%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/d8fa778d-4455-49a2-9536-6774ad2ce2b5%40googlegroups.com.