mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	This new renderer is implemented with the existing wlr_renderer API (which is known to be sub-optimal for some operations). It's not used by default, but users can opt-in by setting WLR_RENDERER=vulkan. The renderer depends on VK_EXT_image_drm_format_modifier and VK_EXT_physical_device_drm. Co-authored-by: Simon Ser <contact@emersion.fr> Co-authored-by: Jan Beich <jbeich@FreeBSD.org>
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * 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
 | 
						|
 |