blob: 33199e0674f5563cddcee50e23e4955977c92aaa [file] [log] [blame]
John Kesseniche6e74942016-06-11 16:43:14 -06001struct {
2};
3
4struct {
5 bool b;
6};
7
8struct myS {
9 bool b, c;
10 float4 a, d;
11};
12
13myS s1;
14
John Kessenich27ffb292017-03-03 17:01:01 -070015static class {
John Kesseniche6e74942016-06-11 16:43:14 -060016 float4 i;
17} s2;
18
John Kessenich34e7ee72016-09-16 17:10:39 -060019struct IN_S {
John Kessenich630dd7d2016-06-12 23:52:12 -060020 linear float4 a;
21 nointerpolation bool b;
22 noperspective centroid float1 c;
23 sample centroid float2 d;
24 bool ff1 : SV_IsFrontFace;
25 bool ff2 : packoffset(c0.y);
John Kessenich96e9f472016-07-29 14:28:39 -060026 bool ff3 : packoffset(c0.y) : register(ps_5_0, s0) ;
27 float4 ff4 : VPOS : packoffset(c0.y) : register(ps_5_0, s0) <int bambam=30;> ;
John Kessenich34e7ee72016-09-16 17:10:39 -060028};
John Kessenich630dd7d2016-06-12 23:52:12 -060029
John Kessenich4e559882016-09-27 23:09:32 -060030float ff5 : packoffset(c101.y) : register(ps_5_0, s[5]);
31float ff6 : packoffset(c102.y) : register(s3[5]);
John Kessenichb38f0712016-07-30 10:29:54 -060032
John Kessenich789086a2017-03-03 18:18:23 -070033struct empty {};
34
35struct containEmpty {
36 empty e;
37};
38
John Kessenich34e7ee72016-09-16 17:10:39 -060039float4 PixelShaderFunction(float4 input, IN_S s) : COLOR0
John Kesseniche6e74942016-06-11 16:43:14 -060040{
John Kessenich27ffb292017-03-03 17:01:01 -070041 class FS {
John Kesseniche6e74942016-06-11 16:43:14 -060042 bool3 b3;
43 } s3;
44
45 s3 == s3;
steve-lunargb3da8a92016-10-12 12:38:12 -060046 s2.i = s.ff4;
John Kessenich630dd7d2016-06-12 23:52:12 -060047
John Kessenich789086a2017-03-03 18:18:23 -070048 containEmpty ce;
49 empty e;
50 e = ce.e;
51
John Kessenich630dd7d2016-06-12 23:52:12 -060052 return input;
steve-lunarg0de16da2016-10-08 10:54:52 -060053}