I like how easy it is to use custom shaders in GTK4. There's no Cairo involved on either of those screenshots.


@exalm I never used shaders but this looks very interesting. 👍

I checked the reference manual and it looks like it is missing exactly this kind of usefull samples.

The samples could open up the mind of Devs to demonstrate shaders and their usefulness not only for fancy animation but for simple problems.

@badcel gtk4-demo does have a few examples, and they aren't all that different code-wise really. That said, this is mostly useful for implementing widgets, most of the time you're just using a widget and how it renders things is an implementation detail. :)

Sign in to participate in the conversation

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.