mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
8fe26c8a10
Unify source/header/entrypoint names Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5457>
29 lines
873 B
Meson
29 lines
873 B
Meson
hlsl_sources = [
|
|
['PSMain_checker_luma', 'ps_5_0'],
|
|
['PSMain_checker_rgb', 'ps_5_0'],
|
|
['PSMain_checker_vuya', 'ps_5_0'],
|
|
['PSMain_checker', 'ps_5_0'],
|
|
['PSMain_color', 'ps_5_0'],
|
|
['PSMain_sample_premul', 'ps_5_0'],
|
|
['PSMain_sample', 'ps_5_0'],
|
|
['PSMain_snow', 'ps_5_0'],
|
|
['VSMain_color', 'vs_5_0'],
|
|
['VSMain_coord', 'vs_5_0'],
|
|
['VSMain_pos', 'vs_5_0'],
|
|
]
|
|
|
|
foreach shader : hlsl_sources
|
|
entry_point = shader.get(0)
|
|
source = files('@0@.hlsl'.format(entry_point))
|
|
header = '@0@.h'.format(entry_point)
|
|
compiled_shader = custom_target(header,
|
|
input : source,
|
|
output : header,
|
|
command : [fxc, '/Fh', '@OUTPUT@',
|
|
'/E', entry_point,
|
|
'/T', shader.get(1),
|
|
'/D', 'BUILDING_HLSL=1',
|
|
'/nologo',
|
|
'@INPUT@'])
|
|
hlsl_precompiled += [compiled_shader]
|
|
endforeach
|