render, render/vulkan: add wlr_buffer_pass_options.luminances

Allows callers to customized the target luminances.
This commit is contained in:
Simon Ser 2025-06-26 13:39:40 +02:00
parent 7b91939d9e
commit de52bc70b9
3 changed files with 14 additions and 1 deletions

View file

@ -407,6 +407,9 @@ struct wlr_vk_render_pass {
bool has_primaries;
struct wlr_color_primaries primaries;
bool has_luminances;
struct wlr_color_luminances luminances;
struct wlr_drm_syncobj_timeline *signal_timeline;
uint64_t signal_point;

View file

@ -36,6 +36,8 @@ struct wlr_buffer_pass_options {
struct wlr_color_transform *color_transform;
/** Primaries describing the color volume of the destination buffer */
const struct wlr_color_primaries *primaries;
/** Luminances for the destination buffer */
const struct wlr_color_luminances *luminances;
/* Signal a timeline synchronization point when the render pass completes.
*