mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 23:22:24 +00:00
10dd416694
This is implemented by a two-subpass rendering scheme; the first subpass draws (and blends) onto a linear R16G16B16A16_SFLOAT buffer, while the second subpass performs linear->srgb conversion, writing onto the actual output buffer.
25 lines
499 B
Meson
25 lines
499 B
Meson
vulkan_shaders_src = [
|
|
'common.vert',
|
|
'texture.frag',
|
|
'quad.frag',
|
|
'output.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
|