diff options
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/config.h.in | 2 | ||||
-rw-r--r-- | include/wlr/render/vulkan.h | 18 |
2 files changed, 20 insertions, 0 deletions
diff --git a/include/wlr/config.h.in b/include/wlr/config.h.in index f8e55149..71868a34 100644 --- a/include/wlr/config.h.in +++ b/include/wlr/config.h.in @@ -7,6 +7,8 @@ #mesondefine WLR_HAS_GLES2_RENDERER +#mesondefine WLR_HAS_VULKAN_RENDERER + #mesondefine WLR_HAS_XWAYLAND #endif diff --git a/include/wlr/render/vulkan.h b/include/wlr/render/vulkan.h new file mode 100644 index 00000000..0302d85b --- /dev/null +++ b/include/wlr/render/vulkan.h @@ -0,0 +1,18 @@ +/* + * This an unstable interface of wlroots. No guarantees are made regarding the + * future consistency of this API. + */ +#ifndef WLR_USE_UNSTABLE +#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features" +#endif + +#ifndef WLR_RENDER_VULKAN_H +#define WLR_RENDER_VULKAN_H + +#include <wlr/render/wlr_renderer.h> + +struct wlr_renderer *wlr_vk_renderer_create_with_drm_fd(int drm_fd); +bool wlr_texture_is_vk(struct wlr_texture *texture); + +#endif + |