mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/fx: Handle "half" type for fx_2_0 parameters.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
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
@ -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 \
|
||||
|
@ -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:
|
||||
|
11
tests/hlsl/effect-variables-fx_2.shader_test
Normal file
11
tests/hlsl/effect-variables-fx_2.shader_test
Normal file
@ -0,0 +1,11 @@
|
||||
[require]
|
||||
shader model < 3.0
|
||||
|
||||
[effect]
|
||||
bool _bool;
|
||||
float _float;
|
||||
half _half;
|
||||
|
||||
technique
|
||||
{
|
||||
}
|
Loading…
Reference in New Issue
Block a user