mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 20:05:58 +01:00
8e34692250
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>
20 lines
408 B
Meson
20 lines
408 B
Meson
vulkan_shaders_src = [
|
|
'common.vert',
|
|
'texture.frag',
|
|
'quad.frag',
|
|
]
|
|
|
|
vulkan_shaders = []
|
|
foreach shader : vulkan_shaders_src
|
|
name = shader.underscorify() + '_data'
|
|
args = [glslang, '-V', '@INPUT@', '-o', '@OUTPUT@', '--vn', name]
|
|
header = custom_target(
|
|
shader + '_spv',
|
|
output: shader + '.h',
|
|
input: shader,
|
|
command: args)
|
|
|
|
vulkan_shaders += [header]
|
|
endforeach
|
|
|
|
wlr_files += vulkan_shaders
|