gstreamer/subprojects/gst-plugins-bad/sys/d3d11/hlsl/meson.build
Seungha Yang 721533d042 d3d11: Use shader model 4
Since shader model 4 is sufficient for the current pixel shader
implementations, prebuild HLSL with shader model 4 as well.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5709>
2023-11-25 20:27:43 +09:00

29 lines
873 B
Meson

hlsl_sources = [
['PSMain_checker_luma', 'ps_4_0'],
['PSMain_checker_rgb', 'ps_4_0'],
['PSMain_checker_vuya', 'ps_4_0'],
['PSMain_checker', 'ps_4_0'],
['PSMain_color', 'ps_4_0'],
['PSMain_sample_premul', 'ps_4_0'],
['PSMain_sample', 'ps_4_0'],
['PSMain_snow', 'ps_4_0'],
['VSMain_color', 'vs_4_0'],
['VSMain_coord', 'vs_4_0'],
['VSMain_pos', 'vs_4_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