API like "discard" in skia

43 views
Skip to first unread message

hr wang

unread,
Sep 14, 2021, 7:29:33 AMSep 14
to skia-discuss
In opengl, I can use "discard" to abandon specific pixel to achieve transparent effect. Is there any samiliar api in Skia? Thanks!

John Stiles

unread,
Oct 11, 2021, 4:19:39 PM (5 days ago) Oct 11
to skia-discuss
SkRuntimeEffect currently doesn't support the discard instruction. Sorry. You can often set the alpha channel to zero to get the same visual effect, though.

Leon Scroggins

unread,
Oct 11, 2021, 4:23:20 PM (5 days ago) Oct 11
to skia-d...@googlegroups.com
For those on the Skia team, this is being discussed in b/198254722.

--
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/51b7f766-77b1-4cba-aa90-dbab4fecc3e9n%40googlegroups.com.


--

 •  Leon Scroggins

 •  scr...@google.com


Reply all
Reply to author
Forward
0 new messages