• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #if 0
2 //
3 // Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
4 //
5 //
6 //   fxc /Fhd3d11gears.hlsl.vs.h /Evs /Tvs_4_0 d3d11gears.hlsl
7 //
8 //
9 // Buffer Definitions:
10 //
11 // cbuffer cb
12 // {
13 //
14 //   float4x4 proj;                     // Offset:    0 Size:    64
15 //   float4x4 modelview;                // Offset:   64 Size:    64
16 //   float4 light;                      // Offset:  128 Size:    16
17 //   float4 diffuse;                    // Offset:  144 Size:    16 [unused]
18 //   float4 specular;                   // Offset:  160 Size:    16 [unused]
19 //   float specular_power;              // Offset:  176 Size:     4 [unused]
20 //
21 // }
22 //
23 //
24 // Resource Bindings:
25 //
26 // Name                                 Type  Format         Dim Slot Elements
27 // ------------------------------ ---------- ------- ----------- ---- --------
28 // cb                                cbuffer      NA          NA    0        1
29 //
30 //
31 //
32 // Input signature:
33 //
34 // Name                 Index   Mask Register SysValue Format   Used
35 // -------------------- ----- ------ -------- -------- ------ ------
36 // POSITION                 0   xyzw        0     NONE  float   xyzw
37 // NORMAL                   0   xyz         1     NONE  float   xyz
38 //
39 //
40 // Output signature:
41 //
42 // Name                 Index   Mask Register SysValue Format   Used
43 // -------------------- ----- ------ -------- -------- ------ ------
44 // SV_POSITION              0   xyzw        0      POS  float   xyzw
45 // NORMAL                   0   xyz         1     NONE  float   xyz
46 // EYE                      0   xyz         2     NONE  float   xyz
47 // LIGHT                    0   xyz         3     NONE  float   xyz
48 //
49 vs_4_0
50 dcl_constantbuffer cb0[9], immediateIndexed
51 dcl_input v0.xyzw
52 dcl_input v1.xyz
53 dcl_output_siv o0.xyzw, position
54 dcl_output o1.xyz
55 dcl_output o2.xyz
56 dcl_output o3.xyz
57 dcl_temps 2
58 mul r0.xyz, v0.yyyy, cb0[5].xyzx
59 mad r0.xyz, cb0[4].xyzx, v0.xxxx, r0.xyzx
60 mad r0.xyz, cb0[6].xyzx, v0.zzzz, r0.xyzx
61 mad r0.xyz, cb0[7].xyzx, v0.wwww, r0.xyzx
62 mul r1.xyzw, r0.yyyy, cb0[1].xyzw
63 mad r1.xyzw, cb0[0].xyzw, r0.xxxx, r1.xyzw
64 mad r1.xyzw, cb0[2].xyzw, r0.zzzz, r1.xyzw
65 add o0.xyzw, r1.xyzw, cb0[3].xyzw
66 mul r1.xyz, v1.yyyy, cb0[5].xyzx
67 mad r1.xyz, cb0[4].xyzx, v1.xxxx, r1.xyzx
68 mad o1.xyz, cb0[6].xyzx, v1.zzzz, r1.xyzx
69 mov o2.xyz, -r0.xyzx
70 add o3.xyz, -r0.xyzx, cb0[8].xyzx
71 ret
72 // Approximately 14 instruction slots used
73 #endif
74 
75 const BYTE g_vs[] =
76 {
77      68,  88,  66,  67, 251,  82,
78      65, 114, 135,  66, 139,  83,
79       7,  10,  20, 121, 102,  38,
80      44,  36,   1,   0,   0,   0,
81     104,   5,   0,   0,   5,   0,
82       0,   0,  52,   0,   0,   0,
83     192,   1,   0,   0,  16,   2,
84       0,   0, 160,   2,   0,   0,
85     236,   4,   0,   0,  82,  68,
86      69,  70, 132,   1,   0,   0,
87       1,   0,   0,   0,  64,   0,
88       0,   0,   1,   0,   0,   0,
89      28,   0,   0,   0,   0,   4,
90     254, 255,   0,   1,   0,   0,
91      80,   1,   0,   0,  60,   0,
92       0,   0,   0,   0,   0,   0,
93       0,   0,   0,   0,   0,   0,
94       0,   0,   0,   0,   0,   0,
95       0,   0,   0,   0,   1,   0,
96       0,   0,   0,   0,   0,   0,
97      99,  98,   0, 171,  60,   0,
98       0,   0,   6,   0,   0,   0,
99      88,   0,   0,   0, 192,   0,
100       0,   0,   0,   0,   0,   0,
101       0,   0,   0,   0, 232,   0,
102       0,   0,   0,   0,   0,   0,
103      64,   0,   0,   0,   2,   0,
104       0,   0, 240,   0,   0,   0,
105       0,   0,   0,   0,   0,   1,
106       0,   0,  64,   0,   0,   0,
107      64,   0,   0,   0,   2,   0,
108       0,   0, 240,   0,   0,   0,
109       0,   0,   0,   0,  10,   1,
110       0,   0, 128,   0,   0,   0,
111      16,   0,   0,   0,   2,   0,
112       0,   0,  16,   1,   0,   0,
113       0,   0,   0,   0,  32,   1,
114       0,   0, 144,   0,   0,   0,
115      16,   0,   0,   0,   0,   0,
116       0,   0,  16,   1,   0,   0,
117       0,   0,   0,   0,  40,   1,
118       0,   0, 160,   0,   0,   0,
119      16,   0,   0,   0,   0,   0,
120       0,   0,  16,   1,   0,   0,
121       0,   0,   0,   0,  49,   1,
122       0,   0, 176,   0,   0,   0,
123       4,   0,   0,   0,   0,   0,
124       0,   0,  64,   1,   0,   0,
125       0,   0,   0,   0, 112, 114,
126     111, 106,   0, 171, 171, 171,
127       3,   0,   3,   0,   4,   0,
128       4,   0,   0,   0,   0,   0,
129       0,   0,   0,   0, 109, 111,
130     100, 101, 108, 118, 105, 101,
131     119,   0, 108, 105, 103, 104,
132     116,   0,   1,   0,   3,   0,
133       1,   0,   4,   0,   0,   0,
134       0,   0,   0,   0,   0,   0,
135     100, 105, 102, 102, 117, 115,
136     101,   0, 115, 112, 101,  99,
137     117, 108,  97, 114,   0, 115,
138     112, 101,  99, 117, 108,  97,
139     114,  95, 112, 111, 119, 101,
140     114,   0,   0,   0,   3,   0,
141       1,   0,   1,   0,   0,   0,
142       0,   0,   0,   0,   0,   0,
143      77, 105,  99, 114, 111, 115,
144     111, 102, 116,  32,  40,  82,
145      41,  32,  72,  76,  83,  76,
146      32,  83, 104,  97, 100, 101,
147     114,  32,  67, 111, 109, 112,
148     105, 108, 101, 114,  32,  57,
149      46,  50,  57,  46,  57,  53,
150      50,  46,  51,  49,  49,  49,
151       0, 171, 171, 171,  73,  83,
152      71,  78,  72,   0,   0,   0,
153       2,   0,   0,   0,   8,   0,
154       0,   0,  56,   0,   0,   0,
155       0,   0,   0,   0,   0,   0,
156       0,   0,   3,   0,   0,   0,
157       0,   0,   0,   0,  15,  15,
158       0,   0,  65,   0,   0,   0,
159       0,   0,   0,   0,   0,   0,
160       0,   0,   3,   0,   0,   0,
161       1,   0,   0,   0,   7,   7,
162       0,   0,  80,  79,  83,  73,
163      84,  73,  79,  78,   0,  78,
164      79,  82,  77,  65,  76,   0,
165      79,  83,  71,  78, 136,   0,
166       0,   0,   4,   0,   0,   0,
167       8,   0,   0,   0, 104,   0,
168       0,   0,   0,   0,   0,   0,
169       1,   0,   0,   0,   3,   0,
170       0,   0,   0,   0,   0,   0,
171      15,   0,   0,   0, 116,   0,
172       0,   0,   0,   0,   0,   0,
173       0,   0,   0,   0,   3,   0,
174       0,   0,   1,   0,   0,   0,
175       7,   8,   0,   0, 123,   0,
176       0,   0,   0,   0,   0,   0,
177       0,   0,   0,   0,   3,   0,
178       0,   0,   2,   0,   0,   0,
179       7,   8,   0,   0, 127,   0,
180       0,   0,   0,   0,   0,   0,
181       0,   0,   0,   0,   3,   0,
182       0,   0,   3,   0,   0,   0,
183       7,   8,   0,   0,  83,  86,
184      95,  80,  79,  83,  73,  84,
185      73,  79,  78,   0,  78,  79,
186      82,  77,  65,  76,   0,  69,
187      89,  69,   0,  76,  73,  71,
188      72,  84,   0, 171, 171, 171,
189      83,  72,  68,  82,  68,   2,
190       0,   0,  64,   0,   1,   0,
191     145,   0,   0,   0,  89,   0,
192       0,   4,  70, 142,  32,   0,
193       0,   0,   0,   0,   9,   0,
194       0,   0,  95,   0,   0,   3,
195     242,  16,  16,   0,   0,   0,
196       0,   0,  95,   0,   0,   3,
197     114,  16,  16,   0,   1,   0,
198       0,   0, 103,   0,   0,   4,
199     242,  32,  16,   0,   0,   0,
200       0,   0,   1,   0,   0,   0,
201     101,   0,   0,   3, 114,  32,
202      16,   0,   1,   0,   0,   0,
203     101,   0,   0,   3, 114,  32,
204      16,   0,   2,   0,   0,   0,
205     101,   0,   0,   3, 114,  32,
206      16,   0,   3,   0,   0,   0,
207     104,   0,   0,   2,   2,   0,
208       0,   0,  56,   0,   0,   8,
209     114,   0,  16,   0,   0,   0,
210       0,   0,  86,  21,  16,   0,
211       0,   0,   0,   0,  70, 130,
212      32,   0,   0,   0,   0,   0,
213       5,   0,   0,   0,  50,   0,
214       0,  10, 114,   0,  16,   0,
215       0,   0,   0,   0,  70, 130,
216      32,   0,   0,   0,   0,   0,
217       4,   0,   0,   0,   6,  16,
218      16,   0,   0,   0,   0,   0,
219      70,   2,  16,   0,   0,   0,
220       0,   0,  50,   0,   0,  10,
221     114,   0,  16,   0,   0,   0,
222       0,   0,  70, 130,  32,   0,
223       0,   0,   0,   0,   6,   0,
224       0,   0, 166,  26,  16,   0,
225       0,   0,   0,   0,  70,   2,
226      16,   0,   0,   0,   0,   0,
227      50,   0,   0,  10, 114,   0,
228      16,   0,   0,   0,   0,   0,
229      70, 130,  32,   0,   0,   0,
230       0,   0,   7,   0,   0,   0,
231     246,  31,  16,   0,   0,   0,
232       0,   0,  70,   2,  16,   0,
233       0,   0,   0,   0,  56,   0,
234       0,   8, 242,   0,  16,   0,
235       1,   0,   0,   0,  86,   5,
236      16,   0,   0,   0,   0,   0,
237      70, 142,  32,   0,   0,   0,
238       0,   0,   1,   0,   0,   0,
239      50,   0,   0,  10, 242,   0,
240      16,   0,   1,   0,   0,   0,
241      70, 142,  32,   0,   0,   0,
242       0,   0,   0,   0,   0,   0,
243       6,   0,  16,   0,   0,   0,
244       0,   0,  70,  14,  16,   0,
245       1,   0,   0,   0,  50,   0,
246       0,  10, 242,   0,  16,   0,
247       1,   0,   0,   0,  70, 142,
248      32,   0,   0,   0,   0,   0,
249       2,   0,   0,   0, 166,  10,
250      16,   0,   0,   0,   0,   0,
251      70,  14,  16,   0,   1,   0,
252       0,   0,   0,   0,   0,   8,
253     242,  32,  16,   0,   0,   0,
254       0,   0,  70,  14,  16,   0,
255       1,   0,   0,   0,  70, 142,
256      32,   0,   0,   0,   0,   0,
257       3,   0,   0,   0,  56,   0,
258       0,   8, 114,   0,  16,   0,
259       1,   0,   0,   0,  86,  21,
260      16,   0,   1,   0,   0,   0,
261      70, 130,  32,   0,   0,   0,
262       0,   0,   5,   0,   0,   0,
263      50,   0,   0,  10, 114,   0,
264      16,   0,   1,   0,   0,   0,
265      70, 130,  32,   0,   0,   0,
266       0,   0,   4,   0,   0,   0,
267       6,  16,  16,   0,   1,   0,
268       0,   0,  70,   2,  16,   0,
269       1,   0,   0,   0,  50,   0,
270       0,  10, 114,  32,  16,   0,
271       1,   0,   0,   0,  70, 130,
272      32,   0,   0,   0,   0,   0,
273       6,   0,   0,   0, 166,  26,
274      16,   0,   1,   0,   0,   0,
275      70,   2,  16,   0,   1,   0,
276       0,   0,  54,   0,   0,   6,
277     114,  32,  16,   0,   2,   0,
278       0,   0,  70,   2,  16, 128,
279      65,   0,   0,   0,   0,   0,
280       0,   0,   0,   0,   0,   9,
281     114,  32,  16,   0,   3,   0,
282       0,   0,  70,   2,  16, 128,
283      65,   0,   0,   0,   0,   0,
284       0,   0,  70, 130,  32,   0,
285       0,   0,   0,   0,   8,   0,
286       0,   0,  62,   0,   0,   1,
287      83,  84,  65,  84, 116,   0,
288       0,   0,  14,   0,   0,   0,
289       2,   0,   0,   0,   0,   0,
290       0,   0,   6,   0,   0,   0,
291       5,   0,   0,   0,   0,   0,
292       0,   0,   0,   0,   0,   0,
293       1,   0,   0,   0,   0,   0,
294       0,   0,   0,   0,   0,   0,
295       0,   0,   0,   0,   0,   0,
296       0,   0,   0,   0,   0,   0,
297       0,   0,   0,   0,   0,   0,
298       0,   0,   0,   0,   0,   0,
299       0,   0,   0,   0,   0,   0,
300       0,   0,   0,   0,   0,   0,
301       1,   0,   0,   0,   0,   0,
302       0,   0,   0,   0,   0,   0,
303       0,   0,   0,   0,   0,   0,
304       0,   0,   0,   0,   0,   0,
305       0,   0,   0,   0,   0,   0,
306       0,   0,   0,   0,   0,   0,
307       0,   0,   0,   0
308 };
309