mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-13 04:27:56 -05:00
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:
parent
c8d94000a6
commit
dd3d9be41e
2 changed files with 7 additions and 0 deletions
|
|
@ -12,6 +12,7 @@
|
||||||
#include <pixman.h>
|
#include <pixman.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <wayland-server-core.h>
|
#include <wayland-server-core.h>
|
||||||
|
#include <wlr/render/color.h>
|
||||||
#include <wlr/util/box.h>
|
#include <wlr/util/box.h>
|
||||||
|
|
||||||
struct wlr_renderer;
|
struct wlr_renderer;
|
||||||
|
|
@ -101,6 +102,8 @@ struct wlr_render_texture_options {
|
||||||
enum wlr_scale_filter_mode filter_mode;
|
enum wlr_scale_filter_mode filter_mode;
|
||||||
/* Blend mode */
|
/* Blend mode */
|
||||||
enum wlr_render_blend_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.
|
/* Wait for a timeline synchronization point before texturing.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,10 @@ struct wlr_renderer {
|
||||||
} events;
|
} events;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
|
/**
|
||||||
|
* Whether color transforms are supported for input textures
|
||||||
|
*/
|
||||||
|
bool input_color_transform;
|
||||||
/**
|
/**
|
||||||
* Does the renderer support color transforms on its output?
|
* Does the renderer support color transforms on its output?
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue