gstreamer/subprojects/gst-plugins-bad/sys/d3d11/hlsl/meson.build
2023-10-11 18:40:46 +00:00

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