2016-09-21 09:05:15 +02:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2016-09-21 12:57:24 +02:00
|
|
|
AM_CFLAGS = @VKD3D_CFLAGS@
|
2020-08-06 13:23:45 +04:30
|
|
|
AM_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/include/private -I$(builddir)/include/private
|
2019-01-31 11:29:30 +01:00
|
|
|
AM_LDFLAGS = -no-undefined
|
2016-09-21 12:57:24 +02:00
|
|
|
|
|
|
|
widl_headers = \
|
2017-12-15 15:16:21 +01:00
|
|
|
include/vkd3d_d3d12.h \
|
2019-08-01 18:10:58 +02:00
|
|
|
include/vkd3d_d3d12sdklayers.h \
|
2021-12-27 20:50:21 -06:00
|
|
|
include/vkd3d_d3d12shader.h \
|
2018-02-09 13:45:09 +01:00
|
|
|
include/vkd3d_d3dcommon.h \
|
2021-04-15 19:03:46 -05:00
|
|
|
include/vkd3d_d3dx9shader.h \
|
2017-12-15 15:16:21 +01:00
|
|
|
include/vkd3d_dxgi.h \
|
|
|
|
include/vkd3d_dxgi1_2.h \
|
|
|
|
include/vkd3d_dxgi1_3.h \
|
|
|
|
include/vkd3d_dxgi1_4.h \
|
|
|
|
include/vkd3d_dxgibase.h \
|
|
|
|
include/vkd3d_dxgiformat.h \
|
2023-09-14 19:29:24 +10:00
|
|
|
include/vkd3d_dxgitype.h \
|
|
|
|
tests/dxcompiler.h
|
2016-09-21 12:57:24 +02:00
|
|
|
|
2016-09-21 12:57:24 +02:00
|
|
|
vkd3d_public_headers = \
|
2016-10-13 12:18:42 +02:00
|
|
|
include/vkd3d.h \
|
2017-12-15 15:16:21 +01:00
|
|
|
include/vkd3d_d3d12.h \
|
2019-08-01 18:10:58 +02:00
|
|
|
include/vkd3d_d3d12sdklayers.h \
|
2021-12-27 20:50:21 -06:00
|
|
|
include/vkd3d_d3d12shader.h \
|
2021-04-15 19:03:43 -05:00
|
|
|
include/vkd3d_d3d9types.h \
|
2018-02-09 13:45:09 +01:00
|
|
|
include/vkd3d_d3dcommon.h \
|
2020-09-23 11:07:48 -05:00
|
|
|
include/vkd3d_d3dcompiler.h \
|
2023-10-20 21:24:28 +02:00
|
|
|
include/vkd3d_d3dcompiler_types.h \
|
2021-04-15 19:03:46 -05:00
|
|
|
include/vkd3d_d3dx9shader.h \
|
2017-12-15 15:16:21 +01:00
|
|
|
include/vkd3d_dxgibase.h \
|
|
|
|
include/vkd3d_dxgiformat.h \
|
2018-11-01 22:39:30 +01:00
|
|
|
include/vkd3d_shader.h \
|
2018-11-08 17:19:29 +01:00
|
|
|
include/vkd3d_types.h \
|
2016-10-07 13:26:39 +02:00
|
|
|
include/vkd3d_utils.h \
|
2016-09-21 12:57:24 +02:00
|
|
|
include/vkd3d_windows.h
|
|
|
|
|
2016-09-21 12:57:24 +02:00
|
|
|
vkd3d_tests = \
|
2018-12-11 15:48:02 +01:00
|
|
|
tests/vkd3d_api \
|
2019-06-17 15:43:31 +02:00
|
|
|
tests/vkd3d_common \
|
2018-12-11 15:48:02 +01:00
|
|
|
tests/vkd3d_shader_api
|
2018-01-11 17:03:48 +01:00
|
|
|
|
|
|
|
vkd3d_cross_tests = \
|
2018-12-04 15:56:01 +01:00
|
|
|
tests/d3d12 \
|
2020-11-24 00:29:59 -06:00
|
|
|
tests/d3d12_invalid_usage \
|
|
|
|
tests/hlsl_d3d12
|
2016-09-21 12:57:24 +02:00
|
|
|
|
2020-09-30 21:01:19 -05:00
|
|
|
vkd3d_shader_tests = \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/abs.shader_test \
|
|
|
|
tests/hlsl/all.shader_test \
|
2024-05-17 19:53:12 -05:00
|
|
|
tests/hlsl/alpha-test.shader_test \
|
2023-11-16 19:54:19 +09:00
|
|
|
tests/hlsl/angle-unit.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/any.shader_test \
|
|
|
|
tests/hlsl/arithmetic-float-uniform.shader_test \
|
|
|
|
tests/hlsl/arithmetic-float.shader_test \
|
|
|
|
tests/hlsl/arithmetic-int-uniform.shader_test \
|
|
|
|
tests/hlsl/arithmetic-int.shader_test \
|
|
|
|
tests/hlsl/arithmetic-uint.shader_test \
|
|
|
|
tests/hlsl/array-dimension.shader_test \
|
|
|
|
tests/hlsl/array-parameters.shader_test \
|
|
|
|
tests/hlsl/array-size-expr.shader_test \
|
|
|
|
tests/hlsl/asfloat.shader_test \
|
2024-07-05 14:59:19 -03:00
|
|
|
tests/hlsl/asint.shader_test \
|
2024-08-21 17:33:16 +02:00
|
|
|
tests/hlsl/asuint.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/attributes.shader_test \
|
2024-08-21 17:33:16 +02:00
|
|
|
tests/hlsl/bitwise-assignment.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/bitwise.shader_test \
|
|
|
|
tests/hlsl/bool-cast.shader_test \
|
|
|
|
tests/hlsl/bool-semantics.shader_test \
|
2024-03-21 11:21:12 +10:00
|
|
|
tests/hlsl/calculate-lod.shader_test \
|
2023-11-10 14:48:23 +10:00
|
|
|
tests/hlsl/cast-64-bit.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/cast-broadcast.shader_test \
|
|
|
|
tests/hlsl/cast-componentwise-compatible.shader_test \
|
|
|
|
tests/hlsl/cast-componentwise-equal.shader_test \
|
|
|
|
tests/hlsl/cast-to-float.shader_test \
|
|
|
|
tests/hlsl/cast-to-half.shader_test \
|
|
|
|
tests/hlsl/cast-to-int.shader_test \
|
|
|
|
tests/hlsl/cast-to-uint.shader_test \
|
|
|
|
tests/hlsl/cbuffer.shader_test \
|
2023-10-17 23:03:41 +02:00
|
|
|
tests/hlsl/ceil.shader_test \
|
2023-06-30 19:04:33 -05:00
|
|
|
tests/hlsl/cf-cond-types.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/clamp.shader_test \
|
2024-05-01 15:43:35 +10:00
|
|
|
tests/hlsl/clip-distance.shader_test \
|
2024-07-16 19:49:30 -05:00
|
|
|
tests/hlsl/clip-planes.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/clip.shader_test \
|
2022-12-01 16:50:17 -03:00
|
|
|
tests/hlsl/combined-samplers.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/comma.shader_test \
|
|
|
|
tests/hlsl/compute.shader_test \
|
|
|
|
tests/hlsl/conditional.shader_test \
|
2023-08-09 13:09:07 +02:00
|
|
|
tests/hlsl/const.shader_test \
|
2024-09-17 11:40:32 +02:00
|
|
|
tests/hlsl/constructgswithso.shader_test \
|
2024-04-04 15:00:26 +10:00
|
|
|
tests/hlsl/coverage.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/cross.shader_test \
|
|
|
|
tests/hlsl/d3dcolor-to-ubyte4.shader_test \
|
|
|
|
tests/hlsl/ddxddy.shader_test \
|
2024-04-10 20:18:24 -04:00
|
|
|
tests/hlsl/default-values.shader_test \
|
2024-09-02 01:46:43 +02:00
|
|
|
tests/hlsl/depth-bounds.shader_test \
|
2024-04-15 10:33:15 +10:00
|
|
|
tests/hlsl/depth-out.shader_test \
|
2023-09-06 16:18:18 +02:00
|
|
|
tests/hlsl/determinant.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/discard.shader_test \
|
|
|
|
tests/hlsl/distance.shader_test \
|
|
|
|
tests/hlsl/dot.shader_test \
|
|
|
|
tests/hlsl/duplicate-modifiers.shader_test \
|
2024-09-08 12:37:36 +02:00
|
|
|
tests/hlsl/early-depth-stencil.shader_test \
|
2024-08-17 22:23:46 +02:00
|
|
|
tests/hlsl/effect-annotations-fx_2.shader_test \
|
|
|
|
tests/hlsl/effect-annotations-fx_4.shader_test \
|
2024-09-22 10:12:05 +02:00
|
|
|
tests/hlsl/effect-assignments-fx_5.shader_test \
|
2024-03-26 01:16:57 -03:00
|
|
|
tests/hlsl/effect-compile.shader_test \
|
2024-09-26 13:50:30 +02:00
|
|
|
tests/hlsl/effect-initial-values-fx_2.shader_test \
|
|
|
|
tests/hlsl/effect-initial-values-fx_4.shader_test \
|
2024-07-20 11:10:06 +02:00
|
|
|
tests/hlsl/effect-pass-states-fx_5.shader_test \
|
2024-02-23 15:30:29 +01:00
|
|
|
tests/hlsl/effect-shader-objects-fx_2.shader_test \
|
|
|
|
tests/hlsl/effect-shader-objects-fx_5.shader_test \
|
2024-03-19 09:21:41 +01:00
|
|
|
tests/hlsl/effect-technique-fx_2.shader_test \
|
|
|
|
tests/hlsl/effect-technique-fx_4.shader_test \
|
|
|
|
tests/hlsl/effect-technique-fx_5.shader_test \
|
2024-03-19 09:28:45 +01:00
|
|
|
tests/hlsl/effect-variables-fx_2.shader_test \
|
2024-06-30 01:30:03 +02:00
|
|
|
tests/hlsl/effect-variables-fx_4.shader_test \
|
|
|
|
tests/hlsl/effect-variables-fx_5.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/entry-point-semantics.shader_test \
|
|
|
|
tests/hlsl/exp.shader_test \
|
|
|
|
tests/hlsl/expr-indexing.shader_test \
|
2024-07-06 12:24:22 -03:00
|
|
|
tests/hlsl/f16tof32.shader_test \
|
2024-10-17 23:21:18 +02:00
|
|
|
tests/hlsl/f32tof16.shader_test \
|
2024-06-21 10:19:17 -05:00
|
|
|
tests/hlsl/faceforward.shader_test \
|
2024-11-04 22:20:45 -06:00
|
|
|
tests/hlsl/fog.shader_test \
|
2024-10-03 16:23:04 -05:00
|
|
|
tests/hlsl/ffp-point-size.shader_test \
|
2023-11-10 13:07:12 +10:00
|
|
|
tests/hlsl/float-comparison.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/floor.shader_test \
|
|
|
|
tests/hlsl/fmod.shader_test \
|
|
|
|
tests/hlsl/for.shader_test \
|
|
|
|
tests/hlsl/frac.shader_test \
|
|
|
|
tests/hlsl/function-cast.shader_test \
|
|
|
|
tests/hlsl/function-overload.shader_test \
|
|
|
|
tests/hlsl/function-return.shader_test \
|
|
|
|
tests/hlsl/function.shader_test \
|
2023-09-07 02:09:36 +02:00
|
|
|
tests/hlsl/fwidth.shader_test \
|
2024-03-26 01:15:42 -03:00
|
|
|
tests/hlsl/fxgroup-syntax.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/gather-offset.shader_test \
|
|
|
|
tests/hlsl/gather.shader_test \
|
2024-04-19 12:33:56 +10:00
|
|
|
tests/hlsl/geometry.shader_test \
|
2024-04-10 13:51:06 +10:00
|
|
|
tests/hlsl/get-sample-pos.shader_test \
|
2023-06-07 18:21:59 +02:00
|
|
|
tests/hlsl/getdimensions.shader_test \
|
2023-10-13 16:55:50 +02:00
|
|
|
tests/hlsl/half.shader_test \
|
2023-11-23 12:59:31 -03:00
|
|
|
tests/hlsl/hard-copy-prop.shader_test \
|
2024-08-23 16:23:53 -04:00
|
|
|
tests/hlsl/hull-shader-attributes.shader_test \
|
2024-08-27 10:55:41 -04:00
|
|
|
tests/hlsl/hull-shader-syntax.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/initializer-flatten.shader_test \
|
|
|
|
tests/hlsl/initializer-implicit-array.shader_test \
|
|
|
|
tests/hlsl/initializer-invalid-arg-count.shader_test \
|
|
|
|
tests/hlsl/initializer-local-array.shader_test \
|
|
|
|
tests/hlsl/initializer-matrix.shader_test \
|
2023-06-22 12:49:47 -04:00
|
|
|
tests/hlsl/initializer-multi.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/initializer-nested.shader_test \
|
|
|
|
tests/hlsl/initializer-numeric.shader_test \
|
|
|
|
tests/hlsl/initializer-objects.shader_test \
|
|
|
|
tests/hlsl/initializer-static-array.shader_test \
|
|
|
|
tests/hlsl/initializer-struct.shader_test \
|
2024-04-22 12:55:44 +10:00
|
|
|
tests/hlsl/instance-id.shader_test \
|
2024-10-14 15:49:50 +02:00
|
|
|
tests/hlsl/interface-packing.shader_test \
|
2024-05-24 23:07:01 +02:00
|
|
|
tests/hlsl/intrinsic-override.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/invalid.shader_test \
|
2023-09-06 15:14:12 -05:00
|
|
|
tests/hlsl/inverse-trig.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/is-front-face.shader_test \
|
|
|
|
tests/hlsl/ldexp.shader_test \
|
|
|
|
tests/hlsl/length.shader_test \
|
|
|
|
tests/hlsl/lerp.shader_test \
|
|
|
|
tests/hlsl/lit.shader_test \
|
|
|
|
tests/hlsl/load-level.shader_test \
|
|
|
|
tests/hlsl/log.shader_test \
|
|
|
|
tests/hlsl/logic-operations.shader_test \
|
|
|
|
tests/hlsl/loop.shader_test \
|
|
|
|
tests/hlsl/majority-pragma.shader_test \
|
|
|
|
tests/hlsl/majority-syntax.shader_test \
|
|
|
|
tests/hlsl/majority-typedef.shader_test \
|
|
|
|
tests/hlsl/math.shader_test \
|
|
|
|
tests/hlsl/matrix-indexing.shader_test \
|
|
|
|
tests/hlsl/matrix-semantics.shader_test \
|
2024-03-04 15:21:18 +10:00
|
|
|
tests/hlsl/max-min.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/minimum-precision.shader_test \
|
2024-10-09 21:27:49 +02:00
|
|
|
tests/hlsl/modf.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/mul.shader_test \
|
|
|
|
tests/hlsl/multiple-rt.shader_test \
|
|
|
|
tests/hlsl/nested-arrays.shader_test \
|
|
|
|
tests/hlsl/nointerpolation.shader_test \
|
2023-11-03 13:02:38 -03:00
|
|
|
tests/hlsl/non-const-indexing.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/normalize.shader_test \
|
2024-05-28 14:43:36 +02:00
|
|
|
tests/hlsl/null.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/numeric-constructor-truncation.shader_test \
|
|
|
|
tests/hlsl/numeric-types.shader_test \
|
|
|
|
tests/hlsl/numthreads.shader_test \
|
|
|
|
tests/hlsl/object-field-offsets.shader_test \
|
|
|
|
tests/hlsl/object-parameters.shader_test \
|
|
|
|
tests/hlsl/object-references.shader_test \
|
2024-10-15 19:04:25 -05:00
|
|
|
tests/hlsl/point-sprite.shader_test \
|
2024-04-27 20:35:07 +10:00
|
|
|
tests/hlsl/pointer-cast.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/pow.shader_test \
|
2024-02-25 02:42:54 +01:00
|
|
|
tests/hlsl/precise-modifier.shader_test \
|
2023-10-13 16:35:12 -05:00
|
|
|
tests/hlsl/rasteriser-ordered-views.shader_test \
|
2024-04-29 12:45:52 -05:00
|
|
|
tests/hlsl/rcp.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/reflect.shader_test \
|
2023-09-07 14:16:15 +02:00
|
|
|
tests/hlsl/refract.shader_test \
|
2023-11-08 19:00:27 -03:00
|
|
|
tests/hlsl/register-reservations-numeric.shader_test \
|
2023-08-28 17:27:17 -05:00
|
|
|
tests/hlsl/register-reservations-profile.shader_test \
|
2023-11-10 17:06:16 -03:00
|
|
|
tests/hlsl/register-reservations-resources.shader_test \
|
2023-08-28 17:27:29 -05:00
|
|
|
tests/hlsl/register-reservations-space.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/return-implicit-conversion.shader_test \
|
|
|
|
tests/hlsl/return.shader_test \
|
|
|
|
tests/hlsl/round.shader_test \
|
2024-10-22 12:53:19 +02:00
|
|
|
tests/hlsl/rt-format-mismatch.shader_test \
|
2024-04-10 13:51:06 +10:00
|
|
|
tests/hlsl/rt-get-sample-info.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/sample-bias.shader_test \
|
2024-02-23 12:30:16 +10:00
|
|
|
tests/hlsl/sample-cmp.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/sample-grad.shader_test \
|
|
|
|
tests/hlsl/sample-level.shader_test \
|
|
|
|
tests/hlsl/sampler-offset.shader_test \
|
2024-08-22 21:10:29 -04:00
|
|
|
tests/hlsl/sampler-state.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/sampler.shader_test \
|
|
|
|
tests/hlsl/saturate.shader_test \
|
2024-07-11 17:31:02 -05:00
|
|
|
tests/hlsl/shade-mode.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/shader-interstage-interface.shader_test \
|
2024-10-03 12:35:11 -05:00
|
|
|
tests/hlsl/shader-point-size.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/shape.shader_test \
|
|
|
|
tests/hlsl/side-effects.shader_test \
|
|
|
|
tests/hlsl/sign.shader_test \
|
|
|
|
tests/hlsl/single-numeric-initializer.shader_test \
|
2024-05-02 19:51:36 -04:00
|
|
|
tests/hlsl/sm1-const-allocation.shader_test \
|
2024-05-24 23:07:01 +02:00
|
|
|
tests/hlsl/sm1-const-folding.shader_test \
|
2024-10-05 11:45:25 -05:00
|
|
|
tests/hlsl/sm1-interstage-interface.shader_test \
|
2023-11-09 19:41:10 -06:00
|
|
|
tests/hlsl/sm6-ternary.shader_test \
|
2024-01-29 14:46:50 +10:00
|
|
|
tests/hlsl/sm6-uav-rwtexture.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/smoothstep.shader_test \
|
|
|
|
tests/hlsl/sqrt.shader_test \
|
2024-01-23 20:26:11 -03:00
|
|
|
tests/hlsl/srv-buffers.shader_test \
|
2024-11-04 16:57:06 +01:00
|
|
|
tests/hlsl/srv-byteaddressbuffer.shader_test \
|
2024-03-26 01:14:16 -03:00
|
|
|
tests/hlsl/state-block-function-syntax.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/state-block-syntax.shader_test \
|
|
|
|
tests/hlsl/static-initializer.shader_test \
|
|
|
|
tests/hlsl/step.shader_test \
|
|
|
|
tests/hlsl/storage-qualifiers.shader_test \
|
2024-04-22 14:18:18 +02:00
|
|
|
tests/hlsl/strings.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/struct-array.shader_test \
|
|
|
|
tests/hlsl/struct-assignment.shader_test \
|
2024-10-07 20:57:15 -04:00
|
|
|
tests/hlsl/struct-inheritance.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/struct-semantics.shader_test \
|
2023-09-20 11:53:36 +02:00
|
|
|
tests/hlsl/switch.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/swizzle-constant-prop.shader_test \
|
2023-09-06 13:44:00 -03:00
|
|
|
tests/hlsl/swizzle-matrix.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/swizzles.shader_test \
|
|
|
|
tests/hlsl/ternary.shader_test \
|
2024-10-14 15:49:50 +02:00
|
|
|
tests/hlsl/tessellation-patch-vars.shader_test \
|
2024-04-08 14:37:32 +10:00
|
|
|
tests/hlsl/tessellation.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/texture-load-offset.shader_test \
|
|
|
|
tests/hlsl/texture-load-typed.shader_test \
|
|
|
|
tests/hlsl/texture-load.shader_test \
|
2023-07-25 04:46:54 -04:00
|
|
|
tests/hlsl/texture-ordering.shader_test \
|
2024-03-12 14:45:39 +10:00
|
|
|
tests/hlsl/tgsm.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/transpose.shader_test \
|
|
|
|
tests/hlsl/trigonometry.shader_test \
|
|
|
|
tests/hlsl/trunc.shader_test \
|
|
|
|
tests/hlsl/type-names.shader_test \
|
2024-02-13 15:11:57 +10:00
|
|
|
tests/hlsl/uav-atomics.shader_test \
|
2024-03-13 16:36:59 +10:00
|
|
|
tests/hlsl/uav-counter.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/uav-load.shader_test \
|
|
|
|
tests/hlsl/uav-out-param.shader_test \
|
|
|
|
tests/hlsl/uav-rwbuffer.shader_test \
|
2024-02-26 14:31:54 +10:00
|
|
|
tests/hlsl/uav-rwbyteaddressbuffer.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/uav-rwstructuredbuffer.shader_test \
|
|
|
|
tests/hlsl/uav-rwtexture.shader_test \
|
2024-01-26 16:32:30 -06:00
|
|
|
tests/hlsl/unbounded-array-5.1.shader_test \
|
2023-09-14 19:29:24 +10:00
|
|
|
tests/hlsl/uniform-parameters.shader_test \
|
2023-06-28 15:50:59 -04:00
|
|
|
tests/hlsl/uniform-semantics.shader_test \
|
2024-10-28 10:37:52 -05:00
|
|
|
tests/hlsl/uninitialized-varyings.shader_test \
|
2024-10-15 13:20:15 +02:00
|
|
|
tests/hlsl/unorm-snorm.shader_test \
|
2024-05-17 18:35:50 -03:00
|
|
|
tests/hlsl/unroll.shader_test \
|
2024-08-21 17:33:16 +02:00
|
|
|
tests/hlsl/unsigned.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/vector-indexing-uniform.shader_test \
|
|
|
|
tests/hlsl/vector-indexing.shader_test \
|
2024-02-22 17:39:45 -03:00
|
|
|
tests/hlsl/vertex-shader-ops.shader_test \
|
2024-04-16 14:30:12 +10:00
|
|
|
tests/hlsl/wave-ops-float.shader_test \
|
2024-04-30 14:12:52 +02:00
|
|
|
tests/hlsl/wave-ops-int.shader_test \
|
2024-04-16 14:30:12 +10:00
|
|
|
tests/hlsl/wave-ops-uint.shader_test \
|
2024-04-30 13:54:39 +02:00
|
|
|
tests/hlsl/wave-reconvergence.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/hlsl/writemask-assignop-0.shader_test \
|
|
|
|
tests/hlsl/writemask-assignop-1.shader_test \
|
|
|
|
tests/hlsl/writemask-assignop-2.shader_test \
|
|
|
|
tests/hlsl/writemask-assignop-3.shader_test \
|
|
|
|
tests/preproc-if-expr.shader_test \
|
2020-11-21 17:23:45 -06:00
|
|
|
tests/preproc-if.shader_test \
|
2020-11-21 17:23:46 -06:00
|
|
|
tests/preproc-ifdef.shader_test \
|
2020-11-24 00:29:57 -06:00
|
|
|
tests/preproc-invalid.shader_test \
|
2020-11-24 00:29:56 -06:00
|
|
|
tests/preproc-macro.shader_test \
|
2023-06-23 18:04:52 -05:00
|
|
|
tests/preproc-misc.shader_test
|
2020-09-30 21:01:19 -05:00
|
|
|
|
2018-03-29 18:21:47 +02:00
|
|
|
vkd3d_test_headers = \
|
2019-02-21 12:32:46 +01:00
|
|
|
tests/d3d12_crosstest.h \
|
2022-01-26 19:40:27 -06:00
|
|
|
tests/d3d12_test_utils.h \
|
2023-09-14 19:29:24 +10:00
|
|
|
tests/dxcompiler.h \
|
2022-01-26 19:40:28 -06:00
|
|
|
tests/shader_runner.h \
|
2022-06-22 16:09:03 +02:00
|
|
|
tests/utils.h \
|
2024-07-08 13:52:54 +10:00
|
|
|
tests/vulkan_procs.h \
|
|
|
|
tests/vulkan_utils.h
|
2018-03-29 18:21:47 +02:00
|
|
|
|
2016-10-13 13:50:36 +02:00
|
|
|
vkd3d_demos = \
|
2021-08-31 01:16:27 +02:00
|
|
|
demos/vkd3d-gears \
|
|
|
|
demos/vkd3d-triangle
|
2016-10-13 13:50:36 +02:00
|
|
|
|
|
|
|
vkd3d_demos_headers = \
|
|
|
|
demos/demo.h \
|
|
|
|
demos/demo_win32.h \
|
|
|
|
demos/demo_xcb.h
|
|
|
|
|
2020-08-06 13:23:45 +04:30
|
|
|
BUILT_SOURCES = $(widl_headers) \
|
|
|
|
include/private/vkd3d_version.h
|
2016-09-21 12:57:24 +02:00
|
|
|
|
2018-11-01 22:39:30 +01:00
|
|
|
noinst_LTLIBRARIES = libvkd3d-common.la
|
2016-10-07 13:26:39 +02:00
|
|
|
libvkd3d_common_la_SOURCES = \
|
2020-09-23 11:07:47 -05:00
|
|
|
libs/vkd3d-common/blob.c \
|
2017-06-19 18:05:53 +02:00
|
|
|
libs/vkd3d-common/debug.c \
|
2020-09-28 22:41:04 -05:00
|
|
|
libs/vkd3d-common/error.c \
|
2019-01-30 00:44:31 +03:30
|
|
|
libs/vkd3d-common/memory.c \
|
|
|
|
libs/vkd3d-common/utf8.c
|
2022-09-15 12:07:40 -07:00
|
|
|
libvkd3d_common_la_LIBADD = @PTHREAD_LIBS@
|
2016-10-07 13:26:39 +02:00
|
|
|
|
2018-11-01 22:39:30 +01:00
|
|
|
lib_LTLIBRARIES = libvkd3d-shader.la libvkd3d.la libvkd3d-utils.la
|
2017-06-16 22:38:21 +02:00
|
|
|
|
2020-12-07 12:56:30 -06:00
|
|
|
VKD3D_V_FLEX = $(vkd3d_v_flex_@AM_V@)
|
|
|
|
vkd3d_v_flex_ = $(vkd3d_v_flex_@AM_DEFAULT_V@)
|
|
|
|
vkd3d_v_flex_0 = @echo " FLEX " $@;
|
|
|
|
vkd3d_v_flex_1 =
|
|
|
|
|
|
|
|
VKD3D_V_BISON = $(vkd3d_v_bison_@AM_V@)
|
|
|
|
vkd3d_v_bison_ = $(vkd3d_v_bison_@AM_DEFAULT_V@)
|
|
|
|
vkd3d_v_bison_0 = @echo " BISON " $@;
|
|
|
|
vkd3d_v_bison_1 =
|
|
|
|
|
|
|
|
libs/vkd3d-shader/preproc.yy.c: libs/vkd3d-shader/preproc.l
|
2020-12-14 21:57:31 -06:00
|
|
|
@$(MKDIR_P) libs/vkd3d-shader
|
2020-12-07 12:56:30 -06:00
|
|
|
$(VKD3D_V_FLEX)$(FLEX) $(LFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
libs/vkd3d-shader/preproc.tab.c libs/vkd3d-shader/preproc.tab.h &: libs/vkd3d-shader/preproc.y
|
2020-12-14 21:57:31 -06:00
|
|
|
@$(MKDIR_P) libs/vkd3d-shader
|
2020-12-07 12:56:30 -06:00
|
|
|
$(VKD3D_V_BISON)$(BISON) $(YFLAGS) -d -o libs/vkd3d-shader/preproc.tab.c $<
|
|
|
|
|
2021-01-27 10:29:44 -06:00
|
|
|
libs/vkd3d-shader/hlsl.yy.c: $(srcdir)/libs/vkd3d-shader/hlsl.l
|
|
|
|
@$(MKDIR_P) libs/vkd3d-shader
|
|
|
|
$(VKD3D_V_FLEX)$(FLEX) $(LFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
libs/vkd3d-shader/hlsl.tab.c libs/vkd3d-shader/hlsl.tab.h &: libs/vkd3d-shader/hlsl.y
|
|
|
|
@$(MKDIR_P) libs/vkd3d-shader
|
|
|
|
$(VKD3D_V_BISON)$(BISON) $(YFLAGS) -d -o libs/vkd3d-shader/hlsl.tab.c $<
|
|
|
|
|
|
|
|
BUILT_SOURCES += \
|
|
|
|
libs/vkd3d-shader/hlsl.tab.h \
|
|
|
|
libs/vkd3d-shader/preproc.tab.h
|
2020-12-07 12:56:30 -06:00
|
|
|
|
|
|
|
vkd3d_shader_yyfiles = \
|
2021-01-27 10:29:44 -06:00
|
|
|
libs/vkd3d-shader/hlsl.tab.c \
|
|
|
|
libs/vkd3d-shader/hlsl.tab.h \
|
|
|
|
libs/vkd3d-shader/hlsl.yy.c \
|
2020-12-07 12:56:30 -06:00
|
|
|
libs/vkd3d-shader/preproc.tab.c \
|
|
|
|
libs/vkd3d-shader/preproc.tab.h \
|
|
|
|
libs/vkd3d-shader/preproc.yy.c
|
|
|
|
|
|
|
|
CLEANFILES = $(vkd3d_shader_yyfiles)
|
|
|
|
|
|
|
|
nodist_libvkd3d_shader_la_SOURCES = $(vkd3d_shader_yyfiles)
|
|
|
|
|
2017-06-16 22:38:21 +02:00
|
|
|
libvkd3d_shader_la_SOURCES = \
|
|
|
|
include/private/list.h \
|
|
|
|
include/private/rbtree.h \
|
|
|
|
include/private/vkd3d_common.h \
|
|
|
|
include/private/vkd3d_memory.h \
|
2019-02-21 12:32:46 +01:00
|
|
|
include/vkd3d_shader.h \
|
2018-12-17 21:21:15 +01:00
|
|
|
libs/vkd3d-shader/checksum.c \
|
2023-04-20 12:48:20 +02:00
|
|
|
libs/vkd3d-shader/d3d_asm.c \
|
2021-10-06 17:11:48 +02:00
|
|
|
libs/vkd3d-shader/d3dbc.c \
|
2017-06-16 22:38:21 +02:00
|
|
|
libs/vkd3d-shader/dxbc.c \
|
2022-11-15 15:16:41 +10:00
|
|
|
libs/vkd3d-shader/dxil.c \
|
2023-11-05 22:07:01 +01:00
|
|
|
libs/vkd3d-shader/fx.c \
|
2021-08-19 20:18:13 +05:30
|
|
|
libs/vkd3d-shader/glsl.c \
|
2021-01-27 10:29:44 -06:00
|
|
|
libs/vkd3d-shader/hlsl.c \
|
2021-08-03 22:52:12 -05:00
|
|
|
libs/vkd3d-shader/hlsl.h \
|
2021-03-02 15:34:46 -06:00
|
|
|
libs/vkd3d-shader/hlsl_codegen.c \
|
2022-02-10 21:48:19 -06:00
|
|
|
libs/vkd3d-shader/hlsl_constant_ops.c \
|
2023-03-01 11:59:28 +10:00
|
|
|
libs/vkd3d-shader/ir.c \
|
2024-08-27 10:34:57 +08:00
|
|
|
libs/vkd3d-shader/msl.c \
|
2021-08-03 22:52:12 -05:00
|
|
|
libs/vkd3d-shader/preproc.h \
|
2017-06-19 18:05:53 +02:00
|
|
|
libs/vkd3d-shader/spirv.c \
|
2023-04-20 12:14:56 +02:00
|
|
|
libs/vkd3d-shader/tpf.c \
|
2018-01-16 14:02:26 +01:00
|
|
|
libs/vkd3d-shader/vkd3d_shader.map \
|
2017-06-16 22:38:21 +02:00
|
|
|
libs/vkd3d-shader/vkd3d_shader_main.c \
|
|
|
|
libs/vkd3d-shader/vkd3d_shader_private.h
|
2021-08-09 01:11:50 -05:00
|
|
|
libvkd3d_shader_la_CFLAGS = $(AM_CFLAGS) -DLIBVKD3D_SHADER_SOURCE -I$(srcdir)/libs/vkd3d-shader @SPIRV_TOOLS_CFLAGS@
|
2024-08-29 12:00:00 +02:00
|
|
|
libvkd3d_shader_la_LDFLAGS = $(AM_LDFLAGS) -version-info 12:0:11
|
2021-02-18 11:24:02 +01:00
|
|
|
libvkd3d_shader_la_LIBADD = libvkd3d-common.la @SPIRV_TOOLS_LIBS@ -lm
|
2018-01-15 13:49:01 +01:00
|
|
|
if HAVE_LD_VERSION_SCRIPT
|
2018-11-01 22:39:30 +01:00
|
|
|
libvkd3d_shader_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libs/vkd3d-shader/vkd3d_shader.map
|
2019-04-12 17:13:17 +02:00
|
|
|
EXTRA_libvkd3d_shader_la_DEPENDENCIES = $(srcdir)/libs/vkd3d-shader/vkd3d_shader.map
|
2018-01-15 13:49:01 +01:00
|
|
|
endif
|
2016-10-07 13:26:39 +02:00
|
|
|
|
2022-03-02 19:06:18 +01:00
|
|
|
EXTRA_DIST = \
|
|
|
|
libs/vkd3d-shader/hlsl.l \
|
|
|
|
libs/vkd3d-shader/hlsl.y \
|
|
|
|
libs/vkd3d-shader/preproc.l \
|
|
|
|
libs/vkd3d-shader/preproc.y
|
|
|
|
|
2016-09-21 12:57:24 +02:00
|
|
|
libvkd3d_la_SOURCES = \
|
2020-09-23 11:07:47 -05:00
|
|
|
include/private/vkd3d_blob.h \
|
2016-10-13 12:18:42 +02:00
|
|
|
include/private/vkd3d_common.h \
|
|
|
|
include/private/vkd3d_memory.h \
|
2023-09-19 17:28:19 +02:00
|
|
|
include/private/vkd3d_shader_utils.h \
|
2016-10-13 12:18:42 +02:00
|
|
|
include/private/vkd3d_test.h \
|
2023-09-19 17:28:19 +02:00
|
|
|
include/private/vkd3d_utf8.h \
|
2018-01-16 14:02:26 +01:00
|
|
|
include/vkd3d_d3d12.idl \
|
2018-02-09 13:45:09 +01:00
|
|
|
include/vkd3d_d3dcommon.idl \
|
2018-01-16 14:02:26 +01:00
|
|
|
include/vkd3d_unknown.idl \
|
2024-04-05 14:08:55 +03:00
|
|
|
libs/vkd3d/cache.c \
|
2016-09-21 14:41:31 +02:00
|
|
|
libs/vkd3d/command.c \
|
2016-09-21 12:57:24 +02:00
|
|
|
libs/vkd3d/device.c \
|
2016-09-26 11:13:30 +02:00
|
|
|
libs/vkd3d/resource.c \
|
2016-09-26 11:13:30 +02:00
|
|
|
libs/vkd3d/state.c \
|
2016-09-21 12:57:24 +02:00
|
|
|
libs/vkd3d/utils.c \
|
2018-01-16 14:02:26 +01:00
|
|
|
libs/vkd3d/vkd3d.map \
|
2016-10-13 12:18:42 +02:00
|
|
|
libs/vkd3d/vkd3d_main.c \
|
|
|
|
libs/vkd3d/vkd3d_private.h \
|
2019-11-25 17:35:37 +03:30
|
|
|
libs/vkd3d/vkd3d_shaders.h \
|
2020-08-06 13:23:45 +04:30
|
|
|
libs/vkd3d/vulkan_procs.h
|
2021-08-09 01:11:50 -05:00
|
|
|
libvkd3d_la_CFLAGS = $(AM_CFLAGS) -DLIBVKD3D_SOURCE
|
2024-08-29 12:00:00 +02:00
|
|
|
libvkd3d_la_LDFLAGS = $(AM_LDFLAGS) -version-info 14:0:13
|
2018-01-17 12:48:14 +01:00
|
|
|
libvkd3d_la_LIBADD = libvkd3d-common.la libvkd3d-shader.la @DL_LIBS@ @PTHREAD_LIBS@
|
2018-01-15 13:49:01 +01:00
|
|
|
if HAVE_LD_VERSION_SCRIPT
|
2018-04-19 09:23:14 +02:00
|
|
|
libvkd3d_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libs/vkd3d/vkd3d.map
|
2019-04-12 17:13:17 +02:00
|
|
|
EXTRA_libvkd3d_la_DEPENDENCIES = $(srcdir)/libs/vkd3d/vkd3d.map
|
2018-01-15 13:49:01 +01:00
|
|
|
endif
|
2016-09-21 12:57:24 +02:00
|
|
|
|
2016-10-07 13:26:39 +02:00
|
|
|
libvkd3d_utils_la_SOURCES = \
|
2021-12-27 20:52:29 -06:00
|
|
|
libs/vkd3d-utils/reflection.c \
|
2018-01-16 14:02:26 +01:00
|
|
|
libs/vkd3d-utils/vkd3d_utils.map \
|
2016-10-13 12:18:42 +02:00
|
|
|
libs/vkd3d-utils/vkd3d_utils_main.c \
|
|
|
|
libs/vkd3d-utils/vkd3d_utils_private.h
|
2021-08-09 01:11:50 -05:00
|
|
|
libvkd3d_utils_la_CFLAGS = $(AM_CFLAGS) -DLIBVKD3D_UTILS_SOURCE
|
2024-08-29 12:00:00 +02:00
|
|
|
libvkd3d_utils_la_LDFLAGS = $(AM_LDFLAGS) -version-info 6:2:5
|
2020-09-29 16:14:51 -05:00
|
|
|
libvkd3d_utils_la_LIBADD = libvkd3d-common.la libvkd3d-shader.la libvkd3d.la @PTHREAD_LIBS@
|
2018-01-15 13:49:01 +01:00
|
|
|
if HAVE_LD_VERSION_SCRIPT
|
2018-04-19 09:23:14 +02:00
|
|
|
libvkd3d_utils_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libs/vkd3d-utils/vkd3d_utils.map
|
2019-04-12 17:13:17 +02:00
|
|
|
EXTRA_libvkd3d_utils_la_DEPENDENCIES = $(srcdir)/libs/vkd3d-utils/vkd3d_utils.map
|
2018-01-15 13:49:01 +01:00
|
|
|
endif
|
2016-10-07 13:26:39 +02:00
|
|
|
|
2022-03-02 19:06:18 +01:00
|
|
|
EXTRA_DIST += ANNOUNCE LICENSE
|
2017-06-19 18:33:39 +02:00
|
|
|
|
2016-09-21 12:57:24 +02:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkginclude_HEADERS = $(vkd3d_public_headers)
|
2018-11-01 22:39:30 +01:00
|
|
|
nodist_pkgconfig_DATA = libvkd3d.pc libvkd3d-shader.pc libvkd3d-utils.pc
|
2020-12-07 12:56:30 -06:00
|
|
|
CLEANFILES += libvkd3d.pc libvkd3d-shader.pc libvkd3d-utils.pc
|
2018-11-01 22:39:30 +01:00
|
|
|
EXTRA_DIST += \
|
|
|
|
libs/vkd3d/libvkd3d.pc.in \
|
|
|
|
libs/vkd3d-shader/libvkd3d-shader.pc.in \
|
|
|
|
libs/vkd3d-utils/libvkd3d-utils.pc.in
|
2016-09-21 12:57:24 +02:00
|
|
|
|
2023-08-03 12:00:00 +02:00
|
|
|
bin_PROGRAMS = vkd3d-compiler vkd3d-dxbc
|
|
|
|
|
2017-06-16 22:38:21 +02:00
|
|
|
vkd3d_compiler_SOURCES = programs/vkd3d-compiler/main.c
|
2020-09-28 17:00:17 +03:30
|
|
|
vkd3d_compiler_CFLAGS = $(AM_CFLAGS) @NCURSES_CFLAGS@
|
|
|
|
vkd3d_compiler_LDADD = libvkd3d-shader.la @NCURSES_LIBS@
|
2017-06-16 22:38:21 +02:00
|
|
|
|
2023-08-03 12:00:00 +02:00
|
|
|
vkd3d_dxbc_SOURCES = programs/vkd3d-dxbc/main.c
|
2023-08-03 12:00:01 +02:00
|
|
|
vkd3d_dxbc_CFLAGS = $(AM_CFLAGS) @NCURSES_CFLAGS@
|
|
|
|
vkd3d_dxbc_LDADD = libvkd3d-shader.la @NCURSES_LIBS@
|
2023-08-03 12:00:00 +02:00
|
|
|
|
2022-04-11 12:18:31 -05:00
|
|
|
LDADD = libvkd3d.la libvkd3d-shader.la libvkd3d-utils.la
|
2016-09-21 12:57:24 +02:00
|
|
|
AM_DEFAULT_SOURCE_EXT = .c
|
2020-09-30 21:01:18 -05:00
|
|
|
|
|
|
|
TEST_EXTENSIONS = .shader_test
|
2024-07-04 12:14:52 +10:00
|
|
|
TEST_CPPFLAGS = -I$(builddir)/tests
|
2020-09-30 21:01:18 -05:00
|
|
|
|
2019-01-31 11:29:31 +01:00
|
|
|
if BUILD_TESTS
|
2022-01-26 19:40:27 -06:00
|
|
|
check_PROGRAMS = $(vkd3d_tests) $(vkd3d_cross_tests) tests/shader_runner
|
2024-02-19 19:39:53 -03:00
|
|
|
dist_check_SCRIPTS = tests/test-driver.sh
|
2020-09-30 21:01:19 -05:00
|
|
|
TESTS = $(vkd3d_tests) $(vkd3d_cross_tests) $(vkd3d_shader_tests)
|
2024-07-04 12:14:52 +10:00
|
|
|
tests_d3d12_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
|
2022-04-18 20:28:46 -05:00
|
|
|
tests_d3d12_LDADD = $(LDADD) @PTHREAD_LIBS@ @DL_LIBS@
|
2024-07-04 12:14:52 +10:00
|
|
|
tests_d3d12_invalid_usage_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
|
2022-04-18 20:28:46 -05:00
|
|
|
tests_d3d12_invalid_usage_LDADD = $(LDADD) @DL_LIBS@
|
2024-07-04 12:14:52 +10:00
|
|
|
tests_hlsl_d3d12_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
|
2022-04-18 20:28:46 -05:00
|
|
|
tests_hlsl_d3d12_LDADD = $(LDADD) @DL_LIBS@
|
2024-07-04 12:14:52 +10:00
|
|
|
tests_shader_runner_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
|
|
|
|
tests_shader_runner_CFLAGS = $(AM_CFLAGS) @OPENGL_CFLAGS@
|
2023-09-22 07:31:31 +02:00
|
|
|
tests_shader_runner_LDADD = $(LDADD) @OPENGL_LIBS@ @DL_LIBS@
|
2022-01-26 19:40:27 -06:00
|
|
|
tests_shader_runner_SOURCES = \
|
|
|
|
tests/shader_runner.c \
|
2023-01-18 13:53:51 +01:00
|
|
|
tests/shader_runner_d3d9.c \
|
|
|
|
tests/shader_runner_d3d11.c \
|
2022-04-11 12:18:31 -05:00
|
|
|
tests/shader_runner_d3d12.c \
|
2023-09-22 07:31:31 +02:00
|
|
|
tests/shader_runner_gl.c \
|
2022-04-11 12:18:31 -05:00
|
|
|
tests/shader_runner_vulkan.c
|
2024-10-21 22:23:27 +08:00
|
|
|
if HAVE_METAL
|
|
|
|
tests_shader_runner_OBJCFLAGS = $(AM_CFLAGS)
|
|
|
|
tests_shader_runner_SOURCES += tests/shader_runner_metal.m
|
|
|
|
tests_shader_runner_LINK = $(OBJCLINK) -framework Foundation -framework Metal
|
|
|
|
else
|
|
|
|
tests_shader_runner_LINK = $(LINK)
|
|
|
|
endif
|
2024-07-04 12:14:52 +10:00
|
|
|
tests_vkd3d_api_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
|
2022-04-18 20:28:44 -05:00
|
|
|
tests_vkd3d_api_LDADD = libvkd3d.la @DL_LIBS@
|
2024-07-04 12:14:52 +10:00
|
|
|
tests_vkd3d_shader_api_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
|
2024-06-10 17:07:21 -05:00
|
|
|
tests_vkd3d_shader_api_CFLAGS = $(AM_CFLAGS) @OPENGL_CFLAGS@
|
|
|
|
tests_vkd3d_shader_api_LDADD = libvkd3d-shader.la @OPENGL_LIBS@
|
2022-01-26 19:40:26 -06:00
|
|
|
SHADER_TEST_LOG_COMPILER = tests/shader_runner
|
2024-02-19 19:39:53 -03:00
|
|
|
SHADER_TEST_LOG_DRIVER = $(srcdir)/tests/test-driver.sh
|
2019-01-31 11:29:31 +01:00
|
|
|
endif
|
2016-09-21 12:57:24 +02:00
|
|
|
|
2022-03-02 19:06:19 +01:00
|
|
|
EXTRA_DIST += $(vkd3d_shader_tests)
|
|
|
|
|
2018-08-15 18:13:31 +02:00
|
|
|
if BUILD_DEMOS
|
2022-04-22 15:17:59 -05:00
|
|
|
DEMOS_LDADD = $(LDADD) libvkd3d-shader.la @DL_LIBS@ @DEMO_LIBS@
|
2022-02-23 17:27:30 +01:00
|
|
|
DEMOS_CFLAGS = $(AM_CFLAGS) @DEMO_CFLAGS@
|
2021-08-31 01:16:27 +02:00
|
|
|
bin_PROGRAMS += $(vkd3d_demos)
|
2016-11-02 14:56:13 +01:00
|
|
|
|
2022-12-06 11:58:24 +01:00
|
|
|
demos_vkd3d_gears_SOURCES = demos/gears.c demos/gears_hlsl.h
|
2021-08-31 01:16:27 +02:00
|
|
|
demos_vkd3d_gears_CFLAGS = $(DEMOS_CFLAGS)
|
|
|
|
demos_vkd3d_gears_LDADD = $(DEMOS_LDADD) -lm
|
2016-11-02 14:56:13 +01:00
|
|
|
|
2022-12-06 11:58:24 +01:00
|
|
|
demos_vkd3d_triangle_SOURCES = demos/triangle.c demos/triangle_hlsl.h
|
2021-08-31 01:16:27 +02:00
|
|
|
demos_vkd3d_triangle_CFLAGS = $(DEMOS_CFLAGS)
|
|
|
|
demos_vkd3d_triangle_LDADD = $(DEMOS_LDADD)
|
2018-08-15 18:13:31 +02:00
|
|
|
endif
|
|
|
|
|
2021-08-03 22:52:14 -05:00
|
|
|
noinst_HEADERS = $(vkd3d_test_headers) $(vkd3d_demos_headers)
|
2016-10-13 13:50:36 +02:00
|
|
|
|
2016-09-29 12:57:01 +02:00
|
|
|
VKD3D_V_WIDL = $(vkd3d_v_widl_@AM_V@)
|
|
|
|
vkd3d_v_widl_ = $(vkd3d_v_widl_@AM_DEFAULT_V@)
|
|
|
|
vkd3d_v_widl_0 = @echo " WIDL " $@;
|
|
|
|
vkd3d_v_widl_1 =
|
|
|
|
|
2020-08-06 12:18:58 -05:00
|
|
|
if HAVE_WIDL
|
|
|
|
CLEANFILES += $(widl_headers)
|
|
|
|
endif
|
2016-09-28 13:38:28 +02:00
|
|
|
EXTRA_DIST += $(widl_headers) $(widl_headers:.h=.idl)
|
2016-09-21 12:57:24 +02:00
|
|
|
$(widl_headers): %.h: %.idl
|
2018-04-13 12:37:43 +02:00
|
|
|
if HAVE_WIDL
|
2023-09-14 19:29:24 +10:00
|
|
|
$(VKD3D_V_WIDL)$(WIDL) -I$(srcdir)/include -h -o $@ $<
|
2018-04-13 12:37:43 +02:00
|
|
|
else
|
2018-09-14 19:59:05 +04:30
|
|
|
@echo "widl is required to generate $@"
|
2018-04-13 12:37:43 +02:00
|
|
|
endif
|
2016-09-21 12:57:24 +02:00
|
|
|
|
2019-03-18 18:51:21 +03:30
|
|
|
libvkd3d-utils.pc: $(srcdir)/libs/vkd3d-utils/libvkd3d-utils.pc.in Makefile
|
2018-08-10 16:01:30 -05:00
|
|
|
$(AM_V_GEN)$(SED) -e 's![@]prefix[@]!$(prefix)!g' \
|
2018-11-01 22:39:30 +01:00
|
|
|
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
|
|
|
|
-e 's![@]includedir[@]!$(includedir)!g' \
|
|
|
|
-e 's![@]libdir[@]!$(libdir)!g' \
|
|
|
|
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
|
|
|
|
$< > $@
|
|
|
|
|
2019-03-18 18:51:21 +03:30
|
|
|
libvkd3d-shader.pc: $(srcdir)/libs/vkd3d-shader/libvkd3d-shader.pc.in Makefile
|
2018-11-01 22:39:30 +01:00
|
|
|
$(AM_V_GEN)$(SED) -e 's![@]prefix[@]!$(prefix)!g' \
|
2017-06-30 13:10:17 +02:00
|
|
|
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
|
|
|
|
-e 's![@]includedir[@]!$(includedir)!g' \
|
|
|
|
-e 's![@]libdir[@]!$(libdir)!g' \
|
|
|
|
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
|
|
|
|
$< > $@
|
|
|
|
|
2019-03-18 18:51:21 +03:30
|
|
|
libvkd3d.pc: $(srcdir)/libs/vkd3d/libvkd3d.pc.in Makefile
|
2018-08-10 16:01:30 -05:00
|
|
|
$(AM_V_GEN)$(SED) -e 's![@]prefix[@]!$(prefix)!g' \
|
2016-09-21 12:57:24 +02:00
|
|
|
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
|
|
|
|
-e 's![@]includedir[@]!$(includedir)!g' \
|
|
|
|
-e 's![@]libdir[@]!$(libdir)!g' \
|
|
|
|
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
|
|
|
|
$< > $@
|
2016-09-21 12:57:24 +02:00
|
|
|
|
2020-08-06 13:23:45 +04:30
|
|
|
include/private/vkd3d_version.h: dummy-vkd3d-version
|
|
|
|
@$(MKDIR_P) include/private
|
|
|
|
version=`(GIT_DIR=$(top_srcdir)/.git git rev-parse --short HEAD 2>/dev/null || echo '') \
|
|
|
|
| $(SED) -e 's!\(..*\)! (git \1)!' \
|
|
|
|
| $(SED) -n -e '$$s!\(.*\)!#define VKD3D_VCS_ID "\1"!p'` \
|
|
|
|
&& (echo $$version | cmp -s - $@) \
|
|
|
|
|| echo $$version >$@ || ($(RM) $@ && exit 1)
|
|
|
|
.SILENT: include/private/vkd3d_version.h
|
|
|
|
CLEANFILES += include/private/vkd3d_version.h
|
2018-06-27 15:19:25 +02:00
|
|
|
|
|
|
|
.PHONY: dummy-vkd3d-version
|
|
|
|
dummy-vkd3d-version:
|
|
|
|
|
2016-09-21 12:57:24 +02:00
|
|
|
## Cross-compile tests
|
|
|
|
cross_implibs = crosslibs/d3d12
|
2023-09-14 19:29:24 +10:00
|
|
|
CROSS_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/include/private -I$(builddir)/include -I$(builddir)/tests
|
2024-04-17 18:52:05 +02:00
|
|
|
CROSS_CFLAGS = -g -O2 -Wall -municode ${CROSS_CPPFLAGS} \
|
|
|
|
-D_WIN32_WINNT=0x0600 -D__USE_MINGW_ANSI_STDIO=0 -DVKD3D_CROSSTEST=1
|
2016-10-22 20:18:42 +02:00
|
|
|
EXTRA_DIST += $(cross_implibs:=.cross32.def) $(cross_implibs:=.cross64.def)
|
2023-12-06 12:00:00 +01:00
|
|
|
EXTRA_DIST += tests/driver.c tests/shader_runner_d3d11.c tests/shader_runner_d3d9.c
|
2016-09-21 12:57:24 +02:00
|
|
|
|
2022-01-26 19:40:27 -06:00
|
|
|
shader_runner_cross_sources = \
|
|
|
|
$(srcdir)/tests/shader_runner.c \
|
2022-04-07 18:58:17 -05:00
|
|
|
$(srcdir)/tests/shader_runner_d3d9.c \
|
2022-01-26 19:40:33 -06:00
|
|
|
$(srcdir)/tests/shader_runner_d3d11.c \
|
2022-01-26 19:40:27 -06:00
|
|
|
$(srcdir)/tests/shader_runner_d3d12.c
|
|
|
|
|
2023-09-26 11:20:39 +02:00
|
|
|
driver_cross_sources = \
|
|
|
|
$(srcdir)/tests/driver.c
|
|
|
|
|
2018-04-13 12:37:43 +02:00
|
|
|
if HAVE_CROSSTARGET32
|
2016-09-21 12:57:24 +02:00
|
|
|
CROSS32_CC = @CROSSCC32@
|
|
|
|
CROSS32_DLLTOOL = @CROSSTARGET32@-dlltool
|
|
|
|
CROSS32_IMPLIBS = $(cross_implibs:=.cross32.a)
|
2022-04-01 16:01:13 -05:00
|
|
|
CROSS32_EXEFILES =
|
|
|
|
if BUILD_TESTS
|
|
|
|
CROSS32_EXEFILES += $(vkd3d_cross_tests:=.cross32.exe)
|
|
|
|
endif
|
2022-04-01 16:01:11 -05:00
|
|
|
if BUILD_DEMOS
|
|
|
|
CROSS32_EXEFILES += $(vkd3d_demos:demos/vkd3d-%=demos/%.cross32.exe)
|
|
|
|
endif
|
2022-04-01 16:01:13 -05:00
|
|
|
|
|
|
|
CROSS32_FILES = $(CROSS32_EXEFILES)
|
|
|
|
if BUILD_TESTS
|
|
|
|
CROSS32_FILES += tests/shader_runner.cross32.exe
|
2023-09-26 11:20:39 +02:00
|
|
|
CROSS32_FILES += tests/driver.cross32.exe
|
2022-04-01 16:01:13 -05:00
|
|
|
endif
|
2016-09-21 12:57:24 +02:00
|
|
|
|
2022-04-01 16:01:12 -05:00
|
|
|
CLEANFILES += $(CROSS32_IMPLIBS) $(CROSS32_FILES)
|
2016-10-18 19:14:49 +02:00
|
|
|
crosstest32: $(CROSS32_FILES)
|
|
|
|
|
|
|
|
-include tests/$(DEPDIR)/*.cross32.Po
|
2016-10-13 13:50:36 +02:00
|
|
|
-include demos/$(DEPDIR)/*.cross32.Po
|
2016-09-21 12:57:24 +02:00
|
|
|
|
|
|
|
$(CROSS32_IMPLIBS): %.cross32.a: %.cross32.def
|
2016-09-29 12:57:01 +02:00
|
|
|
@${MKDIR_P} crosslibs
|
|
|
|
$(AM_V_GEN)$(CROSS32_DLLTOOL) -k -m i386 --as-flags=-32 -d $< -l $@
|
2016-09-21 12:57:24 +02:00
|
|
|
|
2016-10-18 19:14:49 +02:00
|
|
|
$(CROSS32_EXEFILES): %.cross32.exe: %.c $(CROSS32_IMPLIBS) $(widl_headers)
|
2019-04-10 17:31:57 +02:00
|
|
|
$(AM_V_CCLD)depbase=`echo $@ | $(SED) 's![^/]*$$!$(DEPDIR)/&!;s!\.exe$$!!'`; \
|
2020-09-30 21:01:18 -05:00
|
|
|
$(CROSS32_CC) $(CROSS_CFLAGS) -MT $@ -MD -MP -MF $$depbase.Tpo -o $@ $< $(CROSS32_IMPLIBS) -ldxgi -lgdi32 -ld3dcompiler_47 && \
|
2016-10-18 19:14:49 +02:00
|
|
|
$(am__mv) $$depbase.Tpo $$depbase.Po
|
2022-01-26 19:40:27 -06:00
|
|
|
|
|
|
|
tests/shader_runner.cross32.exe: $(shader_runner_cross_sources) $(CROSS32_IMPLIBS) $(widl_headers)
|
|
|
|
$(AM_V_CCLD)depbase=`echo $@ | sed 's![^/]*$$!$(DEPDIR)/&!;s!\.exe$$!!'`; \
|
|
|
|
$(CROSS32_CC) $(CROSS_CFLAGS) -MT $@ -MD -MP -MF $$depbase.Tpo -o $@ $(shader_runner_cross_sources) $(CROSS32_IMPLIBS) -ldxgi -lgdi32 -ld3dcompiler_47 && \
|
|
|
|
$(am__mv) $$depbase.Tpo $$depbase.Po
|
|
|
|
|
2023-09-26 11:20:39 +02:00
|
|
|
tests/driver.cross32.exe: $(driver_cross_sources)
|
|
|
|
$(AM_V_CCLD)depbase=`echo $@ | sed 's![^/]*$$!$(DEPDIR)/&!;s!\.exe$$!!'`; \
|
|
|
|
$(CROSS32_CC) $(CROSS_CFLAGS) -MT $@ -MD -MP -MF $$depbase.Tpo -o $@ $(driver_cross_sources) && \
|
|
|
|
$(am__mv) $$depbase.Tpo $$depbase.Po
|
|
|
|
|
2016-09-21 12:57:24 +02:00
|
|
|
else
|
|
|
|
crosstest32:
|
|
|
|
endif
|
|
|
|
|
2018-04-13 12:37:43 +02:00
|
|
|
if HAVE_CROSSTARGET64
|
2016-09-21 12:57:24 +02:00
|
|
|
CROSS64_CC = @CROSSCC64@
|
|
|
|
CROSS64_DLLTOOL = @CROSSTARGET64@-dlltool
|
|
|
|
CROSS64_IMPLIBS = $(cross_implibs:=.cross64.a)
|
2022-04-01 16:01:13 -05:00
|
|
|
CROSS64_EXEFILES =
|
|
|
|
if BUILD_TESTS
|
|
|
|
CROSS64_EXEFILES += $(vkd3d_cross_tests:=.cross64.exe)
|
|
|
|
endif
|
2022-04-01 16:01:11 -05:00
|
|
|
if BUILD_DEMOS
|
|
|
|
CROSS64_EXEFILES += $(vkd3d_demos:demos/vkd3d-%=demos/%.cross64.exe)
|
|
|
|
endif
|
2022-04-01 16:01:13 -05:00
|
|
|
|
|
|
|
CROSS64_FILES = $(CROSS64_EXEFILES)
|
|
|
|
if BUILD_TESTS
|
|
|
|
CROSS64_FILES += tests/shader_runner.cross64.exe
|
2023-09-26 11:20:39 +02:00
|
|
|
CROSS64_FILES += tests/driver.cross64.exe
|
2022-04-01 16:01:13 -05:00
|
|
|
endif
|
2016-09-21 12:57:24 +02:00
|
|
|
|
2022-04-01 16:01:12 -05:00
|
|
|
CLEANFILES += $(CROSS64_IMPLIBS) $(CROSS64_FILES)
|
2016-10-18 19:14:49 +02:00
|
|
|
crosstest64: $(CROSS64_FILES)
|
|
|
|
|
|
|
|
-include tests/$(DEPDIR)/*.cross64.Po
|
2016-10-13 13:50:36 +02:00
|
|
|
-include demos/$(DEPDIR)/*.cross64.Po
|
2016-09-21 12:57:24 +02:00
|
|
|
|
|
|
|
$(CROSS64_IMPLIBS): %.cross64.a: %.cross64.def
|
2016-09-29 12:57:01 +02:00
|
|
|
@${MKDIR_P} crosslibs
|
|
|
|
$(AM_V_GEN)$(CROSS64_DLLTOOL) -k -m i386:x86-64 --as-flags=-64 -d $< -l $@
|
2016-09-21 12:57:24 +02:00
|
|
|
|
2016-10-18 19:14:49 +02:00
|
|
|
$(CROSS64_EXEFILES): %.cross64.exe: %.c $(CROSS64_IMPLIBS) $(widl_headers)
|
|
|
|
$(AM_V_CCLD)depbase=`echo $@ | sed 's![^/]*$$!$(DEPDIR)/&!;s!\.exe$$!!'`; \
|
2020-09-30 21:01:18 -05:00
|
|
|
$(CROSS64_CC) $(CROSS_CFLAGS) -MT $@ -MD -MP -MF $$depbase.Tpo -o $@ $< $(CROSS64_IMPLIBS) -ldxgi -lgdi32 -ld3dcompiler_47 && \
|
2016-10-18 19:14:49 +02:00
|
|
|
$(am__mv) $$depbase.Tpo $$depbase.Po
|
2022-01-26 19:40:27 -06:00
|
|
|
|
|
|
|
tests/shader_runner.cross64.exe: $(shader_runner_cross_sources) $(CROSS64_IMPLIBS) $(widl_headers)
|
|
|
|
$(AM_V_CCLD)depbase=`echo $@ | sed 's![^/]*$$!$(DEPDIR)/&!;s!\.exe$$!!'`; \
|
|
|
|
$(CROSS64_CC) $(CROSS_CFLAGS) -MT $@ -MD -MP -MF $$depbase.Tpo -o $@ $(shader_runner_cross_sources) $(CROSS64_IMPLIBS) -ldxgi -lgdi32 -ld3dcompiler_47 && \
|
|
|
|
$(am__mv) $$depbase.Tpo $$depbase.Po
|
|
|
|
|
2023-09-26 11:20:39 +02:00
|
|
|
tests/driver.cross64.exe: $(driver_cross_sources)
|
|
|
|
$(AM_V_CCLD)depbase=`echo $@ | sed 's![^/]*$$!$(DEPDIR)/&!;s!\.exe$$!!'`; \
|
|
|
|
$(CROSS64_CC) $(CROSS_CFLAGS) -MT $@ -MD -MP -MF $$depbase.Tpo -o $@ $(driver_cross_sources) && \
|
|
|
|
$(am__mv) $$depbase.Tpo $$depbase.Po
|
|
|
|
|
2016-09-21 12:57:24 +02:00
|
|
|
else
|
|
|
|
crosstest64:
|
|
|
|
endif
|
|
|
|
|
2023-09-26 11:20:39 +02:00
|
|
|
tests/crosstests.txt: FORCE
|
|
|
|
$(AM_V_GEN) for i in $(vkd3d_cross_tests) ; do echo $$i ; done > $@
|
|
|
|
|
2023-10-18 12:40:57 +02:00
|
|
|
tests/shader_tests.txt: FORCE
|
|
|
|
$(AM_V_GEN) for i in $(vkd3d_shader_tests) ; do echo $$i ; done > $@
|
|
|
|
|
|
|
|
crosstest-lists: tests/crosstests.txt tests/shader_tests.txt
|
|
|
|
CLEANFILES += tests/crosstests.txt tests/shader_tests.txt
|
2023-09-26 11:20:39 +02:00
|
|
|
|
|
|
|
FORCE:
|
|
|
|
|
|
|
|
.PHONY: crosstest crosstest32 crosstest64 crosstest-lists FORCE
|
|
|
|
crosstest: crosstest32 crosstest64 crosstest-lists
|
2020-09-01 10:32:29 -05:00
|
|
|
|
|
|
|
if BUILD_DOC
|
|
|
|
@DX_RULES@
|
|
|
|
all: doxygen-doc
|
|
|
|
CLEANFILES += $(DX_CLEANFILES)
|
|
|
|
endif
|