mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-29 16:05:59 +01:00
21 lines
408 B
Meson
21 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
|