mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Move HLSL tests to a subdirectory.
This commit is contained in:
committed by
Alexandre Julliard
parent
69f32796b0
commit
0d2f2e1860
Notes:
Alexandre Julliard
2023-06-28 23:04:19 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/248
107
tests/hlsl/initializer-invalid-arg-count.shader_test
Normal file
107
tests/hlsl/initializer-invalid-arg-count.shader_test
Normal file
@@ -0,0 +1,107 @@
|
||||
[pixel shader]
|
||||
float4 main() : sv_target
|
||||
{
|
||||
float4 color[2][3] =
|
||||
{
|
||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
|
||||
};
|
||||
return color[1][1];
|
||||
}
|
||||
|
||||
[test]
|
||||
draw quad
|
||||
probe all rgba (17, 18, 19, 20)
|
||||
|
||||
|
||||
[pixel shader fail]
|
||||
float4 main() : sv_target
|
||||
{
|
||||
float4 color[2][3] =
|
||||
{
|
||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
|
||||
};
|
||||
return color[1][1];
|
||||
}
|
||||
|
||||
[pixel shader fail]
|
||||
float4 main() : sv_target
|
||||
{
|
||||
float4 color[2][3] =
|
||||
{
|
||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25
|
||||
};
|
||||
return color[1][1];
|
||||
}
|
||||
|
||||
|
||||
[pixel shader]
|
||||
struct stu
|
||||
{
|
||||
struct
|
||||
{
|
||||
int bar;
|
||||
float4 foo;
|
||||
} bbb[2];
|
||||
int2 aaa;
|
||||
};
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
struct stu val =
|
||||
{
|
||||
11, 12, 13, 14, 25,
|
||||
21, 22, 23, 24, 25,
|
||||
31, 32,
|
||||
};
|
||||
return val.bbb[1].foo;
|
||||
}
|
||||
|
||||
[test]
|
||||
draw quad
|
||||
probe all rgba (22, 23, 24, 25)
|
||||
|
||||
|
||||
[pixel shader fail]
|
||||
struct stu
|
||||
{
|
||||
struct
|
||||
{
|
||||
int bar;
|
||||
float4 foo;
|
||||
} bbb[2];
|
||||
int2 aaa;
|
||||
};
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
struct stu val =
|
||||
{
|
||||
11, 12, 13, 14, 25,
|
||||
21, 22, 23, 24, 25,
|
||||
31, 32, 33,
|
||||
};
|
||||
return val.bbb[1].foo;
|
||||
}
|
||||
|
||||
|
||||
[pixel shader fail]
|
||||
struct stu
|
||||
{
|
||||
struct
|
||||
{
|
||||
int bar;
|
||||
float4 foo;
|
||||
} bbb[2];
|
||||
int2 aaa;
|
||||
};
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
struct stu val =
|
||||
{
|
||||
11, 12, 13, 14, 25,
|
||||
21, 22, 23, 24, 25,
|
||||
31,
|
||||
};
|
||||
return val.bbb[1].foo;
|
||||
}
|
Reference in New Issue
Block a user