Merge branch 'fractional-render' into 'master'

render/pass: accept fractional destination coordinates

See merge request wlroots/wlroots!5208
This commit is contained in:
Loukas Agorgianitis 2026-02-03 22:40:33 +02:00
commit cefe5e9a32
22 changed files with 248 additions and 66 deletions

View file

@ -35,6 +35,7 @@ struct wlr_gles2_tex_shader {
GLint tex;
GLint alpha;
GLint pos_attrib;
GLint dst_bounds;
};
struct wlr_gles2_renderer {
@ -79,6 +80,7 @@ struct wlr_gles2_renderer {
GLint proj;
GLint color;
GLint pos_attrib;
GLint dst_bounds;
} quad;
struct wlr_gles2_tex_shader tex_rgba;
struct wlr_gles2_tex_shader tex_rgbx;

View file

@ -368,6 +368,13 @@ struct wlr_vk_frag_texture_pcr_data {
float matrix[4][4]; // only a 3x3 subset is used
float alpha;
float luminance_multiplier;
float _pad[2]; // padding for vec4 alignment
float dst_bounds[4]; // x, y, x+width, y+height
};
struct wlr_vk_frag_quad_pcr_data {
float color[4];
float dst_bounds[4]; // x, y, x+width, y+height
};
struct wlr_vk_frag_output_pcr_data {