mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
render: introduce wlr_renderer_get_dmabuf_render_formats
It describes which DMA-BUF formats can be used to render.
This commit is contained in:
parent
61612ecb36
commit
5d008d9030
6 changed files with 41 additions and 0 deletions
|
|
@ -52,6 +52,8 @@ struct wlr_renderer_impl {
|
|||
struct wl_resource *buffer, int *width, int *height);
|
||||
const struct wlr_drm_format_set *(*get_dmabuf_formats)(
|
||||
struct wlr_renderer *renderer);
|
||||
const struct wlr_drm_format_set *(*get_dmabuf_render_formats)(
|
||||
struct wlr_renderer *renderer);
|
||||
enum wl_shm_format (*preferred_read_format)(struct wlr_renderer *renderer);
|
||||
bool (*read_pixels)(struct wlr_renderer *renderer, enum wl_shm_format fmt,
|
||||
uint32_t *flags, uint32_t stride, uint32_t width, uint32_t height,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue