render/pass: implement antialiasing for fractional coordinates

Signed-off-by: Loukas Agorgianitis <loukas@agorgianitis.com>
This commit is contained in:
Loukas Agorgianitis 2026-01-08 22:40:20 +02:00
parent 5a49f2ae14
commit e92d8a7a53
No known key found for this signature in database
GPG key ID: DDC6FA7D5BB332E6
11 changed files with 170 additions and 20 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 {