mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
types/wlr_buffer: introduce wlr_buffer_cap
This commit is contained in:
parent
a8c91fbac9
commit
6ec6527855
1 changed files with 12 additions and 0 deletions
|
@ -3,6 +3,18 @@
|
||||||
|
|
||||||
#include <wlr/types/wlr_buffer.h>
|
#include <wlr/types/wlr_buffer.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Buffer capabilities.
|
||||||
|
*
|
||||||
|
* These bits indicate the features supported by a wlr_buffer. There is one bit
|
||||||
|
* per function in wlr_buffer_impl.
|
||||||
|
*/
|
||||||
|
enum wlr_buffer_cap {
|
||||||
|
WLR_BUFFER_CAP_DATA_PTR = 1 << 0,
|
||||||
|
WLR_BUFFER_CAP_DMABUF = 1 << 1,
|
||||||
|
WLR_BUFFER_CAP_SHM = 1 << 2,
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Access a pointer to the allocated data from the underlying implementation,
|
* Access a pointer to the allocated data from the underlying implementation,
|
||||||
* its format and its stride.
|
* its format and its stride.
|
||||||
|
|
Loading…
Reference in a new issue