• 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.ps.h /Eps /Tps_4_0 d3d11gears.hlsl
7 //
8 //
9 // Buffer Definitions:
10 //
11 // cbuffer cb
12 // {
13 //
14 //   float4x4 proj;                     // Offset:    0 Size:    64 [unused]
15 //   float4x4 modelview;                // Offset:   64 Size:    64 [unused]
16 //   float4 light;                      // Offset:  128 Size:    16 [unused]
17 //   float4 diffuse;                    // Offset:  144 Size:    16
18 //   float4 specular;                   // Offset:  160 Size:    16
19 //   float specular_power;              // Offset:  176 Size:     4
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 // SV_POSITION              0   xyzw        0      POS  float
37 // NORMAL                   0   xyz         1     NONE  float   xyz
38 // EYE                      0   xyz         2     NONE  float   xyz
39 // LIGHT                    0   xyz         3     NONE  float   xyz
40 //
41 //
42 // Output signature:
43 //
44 // Name                 Index   Mask Register SysValue Format   Used
45 // -------------------- ----- ------ -------- -------- ------ ------
46 // SV_TARGET                0   xyzw        0   TARGET  float   xyzw
47 //
48 ps_4_0
49 dcl_constantbuffer cb0[12], immediateIndexed
50 dcl_input_ps linear v1.xyz
51 dcl_input_ps linear v2.xyz
52 dcl_input_ps linear v3.xyz
53 dcl_output o0.xyzw
54 dcl_temps 3
55 dp3 r0.x, v2.xyzx, v2.xyzx
56 rsq r0.x, r0.x
57 dp3 r0.y, v3.xyzx, v3.xyzx
58 rsq r0.y, r0.y
59 mul r0.yzw, r0.yyyy, v3.xxyz
60 mad r1.xyz, v2.xyzx, r0.xxxx, r0.yzwy
61 dp3 r0.x, r1.xyzx, r1.xyzx
62 rsq r0.x, r0.x
63 mul r1.xyz, r0.xxxx, r1.xyzx
64 dp3 r0.x, v1.xyzx, v1.xyzx
65 rsq r0.x, r0.x
66 mul r2.xyz, r0.xxxx, v1.xyzx
67 dp3_sat r0.x, r2.xyzx, r1.xyzx
68 dp3_sat r0.y, r2.xyzx, r0.yzwy
69 log r0.x, r0.x
70 mul r0.x, r0.x, cb0[11].x
71 exp r0.x, r0.x
72 mul r1.xyzw, r0.xxxx, cb0[10].xyzw
73 mad o0.xyzw, cb0[9].xyzw, r0.yyyy, r1.xyzw
74 ret
75 // Approximately 20 instruction slots used
76 #endif
77 
78 const BYTE g_ps[] =
79 {
80      68,  88,  66,  67,  91,  23,
81     206, 102,  23,  38, 122,  59,
82      55, 123, 215,  57,  98, 213,
83     215, 191,   1,   0,   0,   0,
84      92,   5,   0,   0,   5,   0,
85       0,   0,  52,   0,   0,   0,
86     192,   1,   0,   0,  80,   2,
87       0,   0, 132,   2,   0,   0,
88     224,   4,   0,   0,  82,  68,
89      69,  70, 132,   1,   0,   0,
90       1,   0,   0,   0,  64,   0,
91       0,   0,   1,   0,   0,   0,
92      28,   0,   0,   0,   0,   4,
93     255, 255,   0,   1,   0,   0,
94      80,   1,   0,   0,  60,   0,
95       0,   0,   0,   0,   0,   0,
96       0,   0,   0,   0,   0,   0,
97       0,   0,   0,   0,   0,   0,
98       0,   0,   0,   0,   1,   0,
99       0,   0,   0,   0,   0,   0,
100      99,  98,   0, 171,  60,   0,
101       0,   0,   6,   0,   0,   0,
102      88,   0,   0,   0, 192,   0,
103       0,   0,   0,   0,   0,   0,
104       0,   0,   0,   0, 232,   0,
105       0,   0,   0,   0,   0,   0,
106      64,   0,   0,   0,   0,   0,
107       0,   0, 240,   0,   0,   0,
108       0,   0,   0,   0,   0,   1,
109       0,   0,  64,   0,   0,   0,
110      64,   0,   0,   0,   0,   0,
111       0,   0, 240,   0,   0,   0,
112       0,   0,   0,   0,  10,   1,
113       0,   0, 128,   0,   0,   0,
114      16,   0,   0,   0,   0,   0,
115       0,   0,  16,   1,   0,   0,
116       0,   0,   0,   0,  32,   1,
117       0,   0, 144,   0,   0,   0,
118      16,   0,   0,   0,   2,   0,
119       0,   0,  16,   1,   0,   0,
120       0,   0,   0,   0,  40,   1,
121       0,   0, 160,   0,   0,   0,
122      16,   0,   0,   0,   2,   0,
123       0,   0,  16,   1,   0,   0,
124       0,   0,   0,   0,  49,   1,
125       0,   0, 176,   0,   0,   0,
126       4,   0,   0,   0,   2,   0,
127       0,   0,  64,   1,   0,   0,
128       0,   0,   0,   0, 112, 114,
129     111, 106,   0, 171, 171, 171,
130       3,   0,   3,   0,   4,   0,
131       4,   0,   0,   0,   0,   0,
132       0,   0,   0,   0, 109, 111,
133     100, 101, 108, 118, 105, 101,
134     119,   0, 108, 105, 103, 104,
135     116,   0,   1,   0,   3,   0,
136       1,   0,   4,   0,   0,   0,
137       0,   0,   0,   0,   0,   0,
138     100, 105, 102, 102, 117, 115,
139     101,   0, 115, 112, 101,  99,
140     117, 108,  97, 114,   0, 115,
141     112, 101,  99, 117, 108,  97,
142     114,  95, 112, 111, 119, 101,
143     114,   0,   0,   0,   3,   0,
144       1,   0,   1,   0,   0,   0,
145       0,   0,   0,   0,   0,   0,
146      77, 105,  99, 114, 111, 115,
147     111, 102, 116,  32,  40,  82,
148      41,  32,  72,  76,  83,  76,
149      32,  83, 104,  97, 100, 101,
150     114,  32,  67, 111, 109, 112,
151     105, 108, 101, 114,  32,  57,
152      46,  50,  57,  46,  57,  53,
153      50,  46,  51,  49,  49,  49,
154       0, 171, 171, 171,  73,  83,
155      71,  78, 136,   0,   0,   0,
156       4,   0,   0,   0,   8,   0,
157       0,   0, 104,   0,   0,   0,
158       0,   0,   0,   0,   1,   0,
159       0,   0,   3,   0,   0,   0,
160       0,   0,   0,   0,  15,   0,
161       0,   0, 116,   0,   0,   0,
162       0,   0,   0,   0,   0,   0,
163       0,   0,   3,   0,   0,   0,
164       1,   0,   0,   0,   7,   7,
165       0,   0, 123,   0,   0,   0,
166       0,   0,   0,   0,   0,   0,
167       0,   0,   3,   0,   0,   0,
168       2,   0,   0,   0,   7,   7,
169       0,   0, 127,   0,   0,   0,
170       0,   0,   0,   0,   0,   0,
171       0,   0,   3,   0,   0,   0,
172       3,   0,   0,   0,   7,   7,
173       0,   0,  83,  86,  95,  80,
174      79,  83,  73,  84,  73,  79,
175      78,   0,  78,  79,  82,  77,
176      65,  76,   0,  69,  89,  69,
177       0,  76,  73,  71,  72,  84,
178       0, 171, 171, 171,  79,  83,
179      71,  78,  44,   0,   0,   0,
180       1,   0,   0,   0,   8,   0,
181       0,   0,  32,   0,   0,   0,
182       0,   0,   0,   0,   0,   0,
183       0,   0,   3,   0,   0,   0,
184       0,   0,   0,   0,  15,   0,
185       0,   0,  83,  86,  95,  84,
186      65,  82,  71,  69,  84,   0,
187     171, 171,  83,  72,  68,  82,
188      84,   2,   0,   0,  64,   0,
189       0,   0, 149,   0,   0,   0,
190      89,   0,   0,   4,  70, 142,
191      32,   0,   0,   0,   0,   0,
192      12,   0,   0,   0,  98,  16,
193       0,   3, 114,  16,  16,   0,
194       1,   0,   0,   0,  98,  16,
195       0,   3, 114,  16,  16,   0,
196       2,   0,   0,   0,  98,  16,
197       0,   3, 114,  16,  16,   0,
198       3,   0,   0,   0, 101,   0,
199       0,   3, 242,  32,  16,   0,
200       0,   0,   0,   0, 104,   0,
201       0,   2,   3,   0,   0,   0,
202      16,   0,   0,   7,  18,   0,
203      16,   0,   0,   0,   0,   0,
204      70,  18,  16,   0,   2,   0,
205       0,   0,  70,  18,  16,   0,
206       2,   0,   0,   0,  68,   0,
207       0,   5,  18,   0,  16,   0,
208       0,   0,   0,   0,  10,   0,
209      16,   0,   0,   0,   0,   0,
210      16,   0,   0,   7,  34,   0,
211      16,   0,   0,   0,   0,   0,
212      70,  18,  16,   0,   3,   0,
213       0,   0,  70,  18,  16,   0,
214       3,   0,   0,   0,  68,   0,
215       0,   5,  34,   0,  16,   0,
216       0,   0,   0,   0,  26,   0,
217      16,   0,   0,   0,   0,   0,
218      56,   0,   0,   7, 226,   0,
219      16,   0,   0,   0,   0,   0,
220      86,   5,  16,   0,   0,   0,
221       0,   0,   6,  25,  16,   0,
222       3,   0,   0,   0,  50,   0,
223       0,   9, 114,   0,  16,   0,
224       1,   0,   0,   0,  70,  18,
225      16,   0,   2,   0,   0,   0,
226       6,   0,  16,   0,   0,   0,
227       0,   0, 150,   7,  16,   0,
228       0,   0,   0,   0,  16,   0,
229       0,   7,  18,   0,  16,   0,
230       0,   0,   0,   0,  70,   2,
231      16,   0,   1,   0,   0,   0,
232      70,   2,  16,   0,   1,   0,
233       0,   0,  68,   0,   0,   5,
234      18,   0,  16,   0,   0,   0,
235       0,   0,  10,   0,  16,   0,
236       0,   0,   0,   0,  56,   0,
237       0,   7, 114,   0,  16,   0,
238       1,   0,   0,   0,   6,   0,
239      16,   0,   0,   0,   0,   0,
240      70,   2,  16,   0,   1,   0,
241       0,   0,  16,   0,   0,   7,
242      18,   0,  16,   0,   0,   0,
243       0,   0,  70,  18,  16,   0,
244       1,   0,   0,   0,  70,  18,
245      16,   0,   1,   0,   0,   0,
246      68,   0,   0,   5,  18,   0,
247      16,   0,   0,   0,   0,   0,
248      10,   0,  16,   0,   0,   0,
249       0,   0,  56,   0,   0,   7,
250     114,   0,  16,   0,   2,   0,
251       0,   0,   6,   0,  16,   0,
252       0,   0,   0,   0,  70,  18,
253      16,   0,   1,   0,   0,   0,
254      16,  32,   0,   7,  18,   0,
255      16,   0,   0,   0,   0,   0,
256      70,   2,  16,   0,   2,   0,
257       0,   0,  70,   2,  16,   0,
258       1,   0,   0,   0,  16,  32,
259       0,   7,  34,   0,  16,   0,
260       0,   0,   0,   0,  70,   2,
261      16,   0,   2,   0,   0,   0,
262     150,   7,  16,   0,   0,   0,
263       0,   0,  47,   0,   0,   5,
264      18,   0,  16,   0,   0,   0,
265       0,   0,  10,   0,  16,   0,
266       0,   0,   0,   0,  56,   0,
267       0,   8,  18,   0,  16,   0,
268       0,   0,   0,   0,  10,   0,
269      16,   0,   0,   0,   0,   0,
270      10, 128,  32,   0,   0,   0,
271       0,   0,  11,   0,   0,   0,
272      25,   0,   0,   5,  18,   0,
273      16,   0,   0,   0,   0,   0,
274      10,   0,  16,   0,   0,   0,
275       0,   0,  56,   0,   0,   8,
276     242,   0,  16,   0,   1,   0,
277       0,   0,   6,   0,  16,   0,
278       0,   0,   0,   0,  70, 142,
279      32,   0,   0,   0,   0,   0,
280      10,   0,   0,   0,  50,   0,
281       0,  10, 242,  32,  16,   0,
282       0,   0,   0,   0,  70, 142,
283      32,   0,   0,   0,   0,   0,
284       9,   0,   0,   0,  86,   5,
285      16,   0,   0,   0,   0,   0,
286      70,  14,  16,   0,   1,   0,
287       0,   0,  62,   0,   0,   1,
288      83,  84,  65,  84, 116,   0,
289       0,   0,  20,   0,   0,   0,
290       3,   0,   0,   0,   0,   0,
291       0,   0,   4,   0,   0,   0,
292      17,   0,   0,   0,   0,   0,
293       0,   0,   0,   0,   0,   0,
294       1,   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       0,   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,   0,   0,
308       0,   0,   0,   0
309 };
310