tests: Add additional string tests.

This commit is contained in:
Francisco Casas 2024-08-07 16:57:02 -04:00 committed by Henri Verbeet
parent e0b5fe1288
commit f8108a4753
Notes: Henri Verbeet 2024-08-13 21:26:39 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/988

View File

@ -50,6 +50,48 @@ float4 main() : sv_target
return 0; return 0;
} }
% This crashes on fxc using ps_5_0
[pixel shader fail]
struct
{
float a;
string b;
} apple = {1, "foobar"};
float4 main() : sv_target
{
return apple.a;
}
[pixel shader fail todo]
struct apple
{
float a;
string b;
};
float4 main(struct apple ap = {1, "foobar"}) : sv_target
{
return ap.a;
}
[pixel shader fail todo]
float4 main(string s = "foobar") : sv_target
{
return 0;
}
[pixel shader fail(sm>=6) todo]
string strs[2] = {"foo", "bar"};
float4 main() : sv_target { return 0; }
% Test string concatenation
[pixel shader todo]
string str = "foo" "bar"
"baz";
float4 main() : sv_target { return 0; }
% Escape sequences are hanlded differently in DXC. % Escape sequences are hanlded differently in DXC.
% Octal, hexadecimal, and unicode escape sequences that are out of range are considered errors. % Octal, hexadecimal, and unicode escape sequences that are out of range are considered errors.