API like "discard" in skia

Skip to first unread message

hr wang

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

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

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
0 new messages