mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
renderer: Introduce wlr_scale_filter_mode
This commit is contained in:
parent
64c0272f81
commit
6bd44c4fcd
6 changed files with 50 additions and 3 deletions
|
|
@ -125,6 +125,7 @@ void vulkan_format_props_finish(struct wlr_vk_format_props *props);
|
|||
|
||||
struct wlr_vk_pipeline_layout_key {
|
||||
const struct wlr_vk_format *ycbcr_format;
|
||||
enum wlr_scale_filter_mode filter_mode;
|
||||
};
|
||||
|
||||
struct wlr_vk_pipeline_layout {
|
||||
|
|
|
|||
|
|
@ -196,6 +196,16 @@ enum wlr_render_blend_mode {
|
|||
WLR_RENDER_BLEND_MODE_NONE,
|
||||
};
|
||||
|
||||
/**
|
||||
* Filter modes.
|
||||
*/
|
||||
enum wlr_scale_filter_mode {
|
||||
/* bilinear texture filtering (default) */
|
||||
WLR_SCALE_FILTER_BILINEAR,
|
||||
/* nearest texture filtering */
|
||||
WLR_SCALE_FILTER_NEAREST,
|
||||
};
|
||||
|
||||
struct wlr_render_texture_options {
|
||||
/* Source texture */
|
||||
struct wlr_texture *texture;
|
||||
|
|
@ -209,6 +219,8 @@ struct wlr_render_texture_options {
|
|||
const pixman_region32_t *clip;
|
||||
/* Transform applied to the source texture */
|
||||
enum wl_output_transform transform;
|
||||
/* Filtering */
|
||||
enum wlr_scale_filter_mode filter_mode;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue