John Kessenich | e6e7494 | 2016-06-11 16:43:14 -0600 | [diff] [blame] | 1 | struct { |
2 | }; | ||||
3 | |||||
4 | struct { | ||||
5 | bool b; | ||||
6 | }; | ||||
7 | |||||
8 | struct myS { | ||||
9 | bool b, c; | ||||
10 | float4 a, d; | ||||
11 | }; | ||||
12 | |||||
13 | myS s1; | ||||
14 | |||||
John Kessenich | 27ffb29 | 2017-03-03 17:01:01 -0700 | [diff] [blame] | 15 | static class { |
John Kessenich | e6e7494 | 2016-06-11 16:43:14 -0600 | [diff] [blame] | 16 | float4 i; |
17 | } s2; | ||||
18 | |||||
John Kessenich | 34e7ee7 | 2016-09-16 17:10:39 -0600 | [diff] [blame] | 19 | struct IN_S { |
John Kessenich | 630dd7d | 2016-06-12 23:52:12 -0600 | [diff] [blame] | 20 | 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 Kessenich | 96e9f47 | 2016-07-29 14:28:39 -0600 | [diff] [blame] | 26 | 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 Kessenich | 34e7ee7 | 2016-09-16 17:10:39 -0600 | [diff] [blame] | 28 | }; |
John Kessenich | 630dd7d | 2016-06-12 23:52:12 -0600 | [diff] [blame] | 29 | |
John Kessenich | 4e55988 | 2016-09-27 23:09:32 -0600 | [diff] [blame] | 30 | float ff5 : packoffset(c101.y) : register(ps_5_0, s[5]); |
31 | float ff6 : packoffset(c102.y) : register(s3[5]); | ||||
John Kessenich | b38f071 | 2016-07-30 10:29:54 -0600 | [diff] [blame] | 32 | |
John Kessenich | 789086a | 2017-03-03 18:18:23 -0700 | [diff] [blame] | 33 | struct empty {}; |
34 | |||||
35 | struct containEmpty { | ||||
36 | empty e; | ||||
37 | }; | ||||
38 | |||||
John Kessenich | 34e7ee7 | 2016-09-16 17:10:39 -0600 | [diff] [blame] | 39 | float4 PixelShaderFunction(float4 input, IN_S s) : COLOR0 |
John Kessenich | e6e7494 | 2016-06-11 16:43:14 -0600 | [diff] [blame] | 40 | { |
John Kessenich | 27ffb29 | 2017-03-03 17:01:01 -0700 | [diff] [blame] | 41 | class FS { |
John Kessenich | e6e7494 | 2016-06-11 16:43:14 -0600 | [diff] [blame] | 42 | bool3 b3; |
43 | } s3; | ||||
44 | |||||
45 | s3 == s3; | ||||
steve-lunarg | b3da8a9 | 2016-10-12 12:38:12 -0600 | [diff] [blame] | 46 | s2.i = s.ff4; |
John Kessenich | 630dd7d | 2016-06-12 23:52:12 -0600 | [diff] [blame] | 47 | |
John Kessenich | 789086a | 2017-03-03 18:18:23 -0700 | [diff] [blame] | 48 | containEmpty ce; |
49 | empty e; | ||||
50 | e = ce.e; | ||||
51 | |||||
John Kessenich | 630dd7d | 2016-06-12 23:52:12 -0600 | [diff] [blame] | 52 | return input; |
steve-lunarg | 0de16da | 2016-10-08 10:54:52 -0600 | [diff] [blame] | 53 | } |