vkd3d-shader/fx: Handle "half" type for fx_2_0 parameters.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-03-19 09:28:45 +01:00 committed by Alexandre Julliard
parent 3fdf674a4d
commit 9117629e35
Notes: Alexandre Julliard 2024-03-27 23:07:48 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/729
3 changed files with 13 additions and 0 deletions

View File

@ -96,6 +96,7 @@ vkd3d_shader_tests = \
tests/hlsl/effect-technique-fx_2.shader_test \
tests/hlsl/effect-technique-fx_4.shader_test \
tests/hlsl/effect-technique-fx_5.shader_test \
tests/hlsl/effect-variables-fx_2.shader_test \
tests/hlsl/entry-point-semantics.shader_test \
tests/hlsl/exp.shader_test \
tests/hlsl/expr-indexing.shader_test \

View File

@ -643,6 +643,7 @@ static uint32_t write_fx_2_parameter(const struct hlsl_type *type, const char *n
switch (type->base_type)
{
case HLSL_TYPE_HALF:
case HLSL_TYPE_FLOAT:
case HLSL_TYPE_BOOL:
case HLSL_TYPE_INT:

View File

@ -0,0 +1,11 @@
[require]
shader model < 3.0
[effect]
bool _bool;
float _float;
half _half;
technique
{
}