Matthias Clasen
a78796f22c
gpu: Add a color convert shader
...
This shader converts between two color states, by using the
same functions that we use on the cpu. The conversion to perform
is passed as part of the variation.
As premultiplication is part of color states on the shader, we also
encode the premultiplication in the shader.
And because opacity is a useful optimization, we also allow setting
opacity.
For now, the only possible color states are srgb and srgb-linear.
2024-07-11 14:57:20 +02:00
..
2024-07-11 14:57:20 +02:00
2024-07-11 14:57:19 +02:00
2024-07-11 14:57:20 +02:00
2024-01-07 07:22:49 +01:00
2024-01-07 14:47:22 +01:00
2023-09-16 21:57:31 -04:00
2020-07-25 00:47:36 +02:00
2023-03-31 15:11:10 -04:00
2024-07-11 14:57:20 +02:00
2024-01-07 07:22:49 +01:00
2024-04-13 22:28:48 -04:00
2023-08-28 20:52:22 -04:00
2023-08-26 10:23:02 -04:00
2024-04-12 12:08:03 +01:00
2023-09-17 00:23:53 -04:00
2024-07-07 05:24:45 +02:00
2024-07-07 05:24:45 +02:00
2023-03-14 14:56:42 -04:00
2023-03-31 15:11:10 -04:00
2023-12-22 08:47:47 -05:00
2020-11-18 20:21:33 -08:00
2019-02-04 14:02:45 +01:00
2024-07-08 09:21:43 +03:00
2024-07-04 21:28:06 +02:00
2024-07-04 21:28:06 +02:00
2024-07-10 22:11:13 +02:00
2024-07-10 12:36:07 +02:00
2024-01-07 20:44:05 -05:00
2023-08-28 11:22:30 -04:00
2024-06-01 10:01:19 +02:00
2023-08-25 09:45:45 -04:00
2023-08-28 21:14:28 -04:00
2023-08-25 20:16:49 -04:00
2023-08-25 07:33:16 -04:00
2023-09-17 17:01:44 -04:00
2024-05-31 11:47:29 +02:00
2023-12-26 21:57:04 -05:00
2023-08-28 00:07:50 -04:00
2024-04-28 08:33:03 +02:00
2024-04-04 00:56:24 +02:00
2024-04-03 10:53:55 +02:00
2023-04-27 13:42:03 +02:00
2023-03-31 15:11:10 -04:00
2024-07-10 21:34:12 +02:00
2024-05-05 15:19:17 -04:00
2024-01-07 14:47:22 +01:00
2024-01-07 14:47:22 +01:00
2024-07-11 14:57:20 +02:00
2024-07-08 15:28:14 +02:00
2024-07-11 14:57:20 +02:00
2024-07-11 14:57:20 +02:00
2024-01-15 18:58:17 -05:00
2024-07-11 14:57:20 +02:00
2024-07-10 21:34:12 +02:00
2023-09-15 03:46:27 +02:00
2024-07-10 21:34:12 +02:00
2024-06-01 10:01:19 +02:00
2023-08-07 13:02:57 -04:00
2023-12-28 07:35:46 +01:00
2024-07-10 21:34:12 +02:00
2023-03-31 15:11:10 -04:00
2024-07-10 14:38:48 +02:00
2023-09-15 03:46:27 +02:00
2024-07-11 14:57:20 +02:00