mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Add union function for format sets
This commit is contained in:
parent
bf8ae8a036
commit
ec37d55a5e
2 changed files with 48 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue