tests: Add some fx profiles tests for structure types containing objects.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-06-30 01:30:03 +02:00 committed by Henri Verbeet
parent 7958babb39
commit c8720f1229
Notes: Henri Verbeet 2024-07-08 18:55:58 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/931
4 changed files with 60 additions and 0 deletions

View File

@ -103,6 +103,8 @@ vkd3d_shader_tests = \
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/effect-variables-fx_4.shader_test \
tests/hlsl/effect-variables-fx_5.shader_test \
tests/hlsl/entry-point-semantics.shader_test \
tests/hlsl/exp.shader_test \
tests/hlsl/expr-indexing.shader_test \

View File

@ -24,3 +24,23 @@ Texture3D tex7;
technique
{
}
[effect]
struct s
{
Texture t;
float4 f;
};
technique {}
[effect fail]
struct s
{
Texture t;
float4 f;
};
s var;
technique {}

View File

@ -0,0 +1,19 @@
[require]
shader model >= 4.0
shader model < 6.0
[effect]
struct s
{
Texture t;
float4 f;
};
[effect fail]
struct s
{
Texture t;
float4 f;
};
s var;

View File

@ -0,0 +1,19 @@
[require]
shader model >= 5.0
shader model < 6.0
[effect]
struct s
{
Texture t;
float4 f;
};
[effect fail todo]
struct s
{
Texture t;
float4 f;
};
s var;