aboutsummaryrefslogtreecommitdiff
path: root/render/vulkan/shaders/meson.build
blob: 906618c29052af400554b2447ddfeeb7a87d9814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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]
	if glslang_version.version_compare('>=11.0.0')
		args += '--quiet'
	endif
	header = custom_target(
		shader + '_spv',
		output: shader + '.h',
		input: shader,
		command: args)

	vulkan_shaders += [header]
endforeach

wlr_files += vulkan_shaders