mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
tests: Test string escape sequences.
This commit is contained in:
parent
c44a18b3d1
commit
4b2e847d11
Notes:
Henri Verbeet
2024-08-07 16:01:12 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/962
@ -49,3 +49,52 @@ 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.
|
||||
[pixel shader todo fail(sm>=6)]
|
||||
string a = "\nAAA\tBBB\rCCC\fDDD\vEEE\sFFF";
|
||||
string b = "\\AAA\"BBB\'CCC\?DDD\aEEE\bFFF\sGGG";
|
||||
string c = "\52 AAA\052 BBB\0521 CCC\52a DDD\241 EEE\441 FFF\02 GGG\0 HHH";
|
||||
string d = "\x AAA\x8 BBB\x2A CCC\x2A1 DDD\241 EEE";
|
||||
string e = "AAA\x21111111111111121 BBB\x2ah CCC\xFFFF2a GGG\X0";
|
||||
string f = "\e[41m AAA\e41 \u002a \U002a BBB\80CCC ";
|
||||
|
||||
float4 main() : sv_target { return 0; }
|
||||
|
||||
|
||||
[require]
|
||||
shader model >= 5.0
|
||||
shader model < 6.0
|
||||
|
||||
[effect todo]
|
||||
float4 f
|
||||
<
|
||||
string a = "\nAAA\tBBB\rCCC\fDDD\vEEE\sFFF";
|
||||
string b = "\\AAA\"BBB\'CCC\?DDD\aEEE\bFFF\sGGG";
|
||||
string c = "\52 AAA\052 BBB\0521 CCC\52a DDD\241 EEE\441 FFF\02 GGG\0 HHH";
|
||||
string d = "\x AAA\x8 BBB\x2A CCC\x2A1 DDD\241 EEE";
|
||||
string e = "AAA\x21111111111111121 BBB\x2ah CCC\xFFFF2a GGG\X0";
|
||||
string f = "\e[41m AAA\e41 \u002a \U002a BBB\80CCC ";
|
||||
>;
|
||||
|
||||
float4 main() : sv_target { return 0; }
|
||||
|
||||
// Native compiler's output is:
|
||||
//
|
||||
// cbuffer $Globals
|
||||
// {
|
||||
// float4 f
|
||||
// <
|
||||
// String a = "
|
||||
// CCC BBB
|
||||
// DDD
|
||||
// EEEsFFF";
|
||||
// String b = "\AAA"BBB'CCC?DDDEEFFFsGGG";
|
||||
// String c = "* AAA* BBB*1 CCC*a DDD¡ EEE! FFF GGG";
|
||||
// String d = "x AA BBB* CCC¡ DDD¡ EEE";
|
||||
// String e = "AAA! BBB*h CCC* GGGX0";
|
||||
// String f = "e[41m AAAe41 u002a U002a BBB80CCC ";
|
||||
// >; // Offset: 0, size: 16
|
||||
// }
|
||||
|
Loading…
Reference in New Issue
Block a user