render/pass: add wlr_render_texture_options.transfer_function

Also add a bit in wlr_renderer.features to indicate support.
This commit is contained in:
Simon Ser 2025-02-23 14:58:04 +01:00
parent c8d94000a6
commit dd3d9be41e
2 changed files with 7 additions and 0 deletions

View file

@ -12,6 +12,7 @@
#include <pixman.h>
#include <stdint.h>
#include <wayland-server-core.h>
#include <wlr/render/color.h>
#include <wlr/util/box.h>
struct wlr_renderer;
@ -101,6 +102,8 @@ struct wlr_render_texture_options {
enum wlr_scale_filter_mode filter_mode;
/* Blend mode */
enum wlr_render_blend_mode blend_mode;
/* Transfer function the source texture is encoded with */
enum wlr_color_transfer_function transfer_function;
/* Wait for a timeline synchronization point before texturing.
*

View file

@ -41,6 +41,10 @@ struct wlr_renderer {
} events;
struct {
/**
* Whether color transforms are supported for input textures
*/
bool input_color_transform;
/**
* Does the renderer support color transforms on its output?
*/