diff options
author | Austin Shafer <ashafer@nvidia.com> | 2022-07-22 17:16:41 -0400 |
---|---|---|
committer | Austin Shafer <ashafer@nvidia.com> | 2023-05-03 12:06:48 -0400 |
commit | ec37d55a5eb76d6ac516f14ebfead7bfffb6426a (patch) | |
tree | 633a299d4b346a77f8658f0e644aac57140b3c49 /include/wlr/render | |
parent | bf8ae8a0367427a595e1fb804a27b7cb8605f8ae (diff) |
Add union function for format sets
Diffstat (limited to 'include/wlr/render')
-rw-r--r-- | include/wlr/render/drm_format_set.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/wlr/render/drm_format_set.h b/include/wlr/render/drm_format_set.h index 6dbdc749..d7dfd779 100644 --- a/include/wlr/render/drm_format_set.h +++ b/include/wlr/render/drm_format_set.h @@ -72,4 +72,12 @@ bool wlr_drm_format_set_add(struct wlr_drm_format_set *set, uint32_t format, bool wlr_drm_format_set_intersect(struct wlr_drm_format_set *dst, const struct wlr_drm_format_set *a, const struct wlr_drm_format_set *b); +/** + * Unions DRM format set `a` and `b`, storing in the destination set + * `dst`. + * + * Returns false on failure. + */ +bool wlr_drm_format_set_union(struct wlr_drm_format_set *dst, + const struct wlr_drm_format_set *a, const struct wlr_drm_format_set *b); #endif |