mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
tests: Add additional string tests.
This commit is contained in:
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
@ -50,6 +50,48 @@ float4 main() : sv_target
|
||||
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.
|
||||
% Octal, hexadecimal, and unicode escape sequences that are out of range are considered errors.
|
||||
|
Loading…
Reference in New Issue
Block a user