UIVertexShader.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. #if 0
  2. //
  3. // Generated by Microsoft (R) HLSL Shader Compiler 10.1
  4. //
  5. //
  6. // Buffer Definitions:
  7. //
  8. // cbuffer MatrixBuffer
  9. // {
  10. //
  11. // float4x4 knochenMatrix[128]; // Offset: 0 Size: 8192
  12. //
  13. // }
  14. //
  15. // cbuffer Kamera
  16. // {
  17. //
  18. // float4x4 view; // Offset: 0 Size: 64
  19. // float4x4 projection; // Offset: 64 Size: 64
  20. //
  21. // }
  22. //
  23. //
  24. // Resource Bindings:
  25. //
  26. // Name Type Format Dim HLSL Bind Count
  27. // ------------------------------ ---------- ------- ----------- -------------- ------
  28. // MatrixBuffer cbuffer NA NA cb0 1
  29. // Kamera cbuffer NA NA cb1 1
  30. //
  31. //
  32. //
  33. // Input signature:
  34. //
  35. // Name Index Mask Register SysValue Format Used
  36. // -------------------- ----- ------ -------- -------- ------- ------
  37. // POSITION 0 xyzw 0 NONE float xyz
  38. // TEXCOORD 0 xy 1 NONE float xy
  39. // NORMAL 0 xyz 2 NONE float xyz
  40. // KNOCHEN_ID 0 x 3 NONE uint x
  41. // VERTEX_ID 0 x 4 NONE uint
  42. //
  43. //
  44. // Output signature:
  45. //
  46. // Name Index Mask Register SysValue Format Used
  47. // -------------------- ----- ------ -------- -------- ------- ------
  48. // POSITION 0 xyzw 0 NONE float xyzw
  49. // SV_POSITION 0 xyzw 1 POS float xyzw
  50. // TEXCOORD 0 xy 2 NONE float xy
  51. // TEXCOORD 1 xyz 3 NONE float xyz
  52. //
  53. vs_5_0
  54. dcl_globalFlags refactoringAllowed
  55. dcl_constantbuffer CB0[512], dynamicIndexed
  56. dcl_constantbuffer CB1[8], immediateIndexed
  57. dcl_input v0.xyz
  58. dcl_input v1.xy
  59. dcl_input v2.xyz
  60. dcl_input v3.x
  61. dcl_output o0.xyzw
  62. dcl_output_siv o1.xyzw, position
  63. dcl_output o2.xy
  64. dcl_output o3.xyz
  65. dcl_temps 3
  66. mov r0.xyz, v0.xyzx
  67. mov r0.w, l(1.000000)
  68. ishl r1.x, v3.x, l(2)
  69. dp4 r2.x, r0.xyzw, cb0[r1.x + 0].xyzw
  70. dp4 r2.y, r0.xyzw, cb0[r1.x + 1].xyzw
  71. dp4 r2.z, r0.xyzw, cb0[r1.x + 2].xyzw
  72. dp4 r2.w, r0.xyzw, cb0[r1.x + 3].xyzw
  73. mov o0.xyzw, r2.xyzw
  74. dp4 r0.x, r2.xyzw, cb1[0].xyzw
  75. dp4 r0.y, r2.xyzw, cb1[1].xyzw
  76. dp4 r0.z, r2.xyzw, cb1[2].xyzw
  77. dp4 r0.w, r2.xyzw, cb1[3].xyzw
  78. dp4 o1.x, r0.xyzw, cb1[4].xyzw
  79. dp4 o1.y, r0.xyzw, cb1[5].xyzw
  80. dp4 o1.z, r0.xyzw, cb1[6].xyzw
  81. dp4 o1.w, r0.xyzw, cb1[7].xyzw
  82. mov o2.xy, v1.xyxx
  83. dp3 r0.x, v2.xyzx, cb0[r1.x + 0].xyzx
  84. dp3 r0.y, v2.xyzx, cb0[r1.x + 1].xyzx
  85. dp3 r0.z, v2.xyzx, cb0[r1.x + 2].xyzx
  86. dp3 r0.w, r0.xyzx, r0.xyzx
  87. rsq r0.w, r0.w
  88. mul o3.xyz, r0.wwww, r0.xyzx
  89. ret
  90. // Approximately 24 instruction slots used
  91. #endif
  92. const BYTE UIVertexShader[] =
  93. {
  94. 68, 88, 66, 67, 145, 178,
  95. 205, 52, 223, 143, 151, 116,
  96. 78, 112, 177, 241, 7, 115,
  97. 203, 22, 1, 0, 0, 0,
  98. 96, 7, 0, 0, 5, 0,
  99. 0, 0, 52, 0, 0, 0,
  100. 16, 2, 0, 0, 200, 2,
  101. 0, 0, 88, 3, 0, 0,
  102. 196, 6, 0, 0, 82, 68,
  103. 69, 70, 212, 1, 0, 0,
  104. 2, 0, 0, 0, 144, 0,
  105. 0, 0, 2, 0, 0, 0,
  106. 60, 0, 0, 0, 0, 5,
  107. 254, 255, 0, 1, 0, 0,
  108. 171, 1, 0, 0, 82, 68,
  109. 49, 49, 60, 0, 0, 0,
  110. 24, 0, 0, 0, 32, 0,
  111. 0, 0, 40, 0, 0, 0,
  112. 36, 0, 0, 0, 12, 0,
  113. 0, 0, 0, 0, 0, 0,
  114. 124, 0, 0, 0, 0, 0,
  115. 0, 0, 0, 0, 0, 0,
  116. 0, 0, 0, 0, 0, 0,
  117. 0, 0, 0, 0, 0, 0,
  118. 1, 0, 0, 0, 1, 0,
  119. 0, 0, 137, 0, 0, 0,
  120. 0, 0, 0, 0, 0, 0,
  121. 0, 0, 0, 0, 0, 0,
  122. 0, 0, 0, 0, 1, 0,
  123. 0, 0, 1, 0, 0, 0,
  124. 1, 0, 0, 0, 77, 97,
  125. 116, 114, 105, 120, 66, 117,
  126. 102, 102, 101, 114, 0, 75,
  127. 97, 109, 101, 114, 97, 0,
  128. 124, 0, 0, 0, 1, 0,
  129. 0, 0, 192, 0, 0, 0,
  130. 0, 32, 0, 0, 0, 0,
  131. 0, 0, 0, 0, 0, 0,
  132. 137, 0, 0, 0, 2, 0,
  133. 0, 0, 36, 1, 0, 0,
  134. 128, 0, 0, 0, 0, 0,
  135. 0, 0, 0, 0, 0, 0,
  136. 232, 0, 0, 0, 0, 0,
  137. 0, 0, 0, 32, 0, 0,
  138. 2, 0, 0, 0, 0, 1,
  139. 0, 0, 0, 0, 0, 0,
  140. 255, 255, 255, 255, 0, 0,
  141. 0, 0, 255, 255, 255, 255,
  142. 0, 0, 0, 0, 107, 110,
  143. 111, 99, 104, 101, 110, 77,
  144. 97, 116, 114, 105, 120, 0,
  145. 102, 108, 111, 97, 116, 52,
  146. 120, 52, 0, 171, 3, 0,
  147. 3, 0, 4, 0, 4, 0,
  148. 128, 0, 0, 0, 0, 0,
  149. 0, 0, 0, 0, 0, 0,
  150. 0, 0, 0, 0, 0, 0,
  151. 0, 0, 0, 0, 0, 0,
  152. 246, 0, 0, 0, 116, 1,
  153. 0, 0, 0, 0, 0, 0,
  154. 64, 0, 0, 0, 2, 0,
  155. 0, 0, 124, 1, 0, 0,
  156. 0, 0, 0, 0, 255, 255,
  157. 255, 255, 0, 0, 0, 0,
  158. 255, 255, 255, 255, 0, 0,
  159. 0, 0, 160, 1, 0, 0,
  160. 64, 0, 0, 0, 64, 0,
  161. 0, 0, 2, 0, 0, 0,
  162. 124, 1, 0, 0, 0, 0,
  163. 0, 0, 255, 255, 255, 255,
  164. 0, 0, 0, 0, 255, 255,
  165. 255, 255, 0, 0, 0, 0,
  166. 118, 105, 101, 119, 0, 171,
  167. 171, 171, 3, 0, 3, 0,
  168. 4, 0, 4, 0, 0, 0,
  169. 0, 0, 0, 0, 0, 0,
  170. 0, 0, 0, 0, 0, 0,
  171. 0, 0, 0, 0, 0, 0,
  172. 0, 0, 0, 0, 246, 0,
  173. 0, 0, 112, 114, 111, 106,
  174. 101, 99, 116, 105, 111, 110,
  175. 0, 77, 105, 99, 114, 111,
  176. 115, 111, 102, 116, 32, 40,
  177. 82, 41, 32, 72, 76, 83,
  178. 76, 32, 83, 104, 97, 100,
  179. 101, 114, 32, 67, 111, 109,
  180. 112, 105, 108, 101, 114, 32,
  181. 49, 48, 46, 49, 0, 171,
  182. 73, 83, 71, 78, 176, 0,
  183. 0, 0, 5, 0, 0, 0,
  184. 8, 0, 0, 0, 128, 0,
  185. 0, 0, 0, 0, 0, 0,
  186. 0, 0, 0, 0, 3, 0,
  187. 0, 0, 0, 0, 0, 0,
  188. 15, 7, 0, 0, 137, 0,
  189. 0, 0, 0, 0, 0, 0,
  190. 0, 0, 0, 0, 3, 0,
  191. 0, 0, 1, 0, 0, 0,
  192. 3, 3, 0, 0, 146, 0,
  193. 0, 0, 0, 0, 0, 0,
  194. 0, 0, 0, 0, 3, 0,
  195. 0, 0, 2, 0, 0, 0,
  196. 7, 7, 0, 0, 153, 0,
  197. 0, 0, 0, 0, 0, 0,
  198. 0, 0, 0, 0, 1, 0,
  199. 0, 0, 3, 0, 0, 0,
  200. 1, 1, 0, 0, 164, 0,
  201. 0, 0, 0, 0, 0, 0,
  202. 0, 0, 0, 0, 1, 0,
  203. 0, 0, 4, 0, 0, 0,
  204. 1, 0, 0, 0, 80, 79,
  205. 83, 73, 84, 73, 79, 78,
  206. 0, 84, 69, 88, 67, 79,
  207. 79, 82, 68, 0, 78, 79,
  208. 82, 77, 65, 76, 0, 75,
  209. 78, 79, 67, 72, 69, 78,
  210. 95, 73, 68, 0, 86, 69,
  211. 82, 84, 69, 88, 95, 73,
  212. 68, 0, 171, 171, 79, 83,
  213. 71, 78, 136, 0, 0, 0,
  214. 4, 0, 0, 0, 8, 0,
  215. 0, 0, 104, 0, 0, 0,
  216. 0, 0, 0, 0, 0, 0,
  217. 0, 0, 3, 0, 0, 0,
  218. 0, 0, 0, 0, 15, 0,
  219. 0, 0, 113, 0, 0, 0,
  220. 0, 0, 0, 0, 1, 0,
  221. 0, 0, 3, 0, 0, 0,
  222. 1, 0, 0, 0, 15, 0,
  223. 0, 0, 125, 0, 0, 0,
  224. 0, 0, 0, 0, 0, 0,
  225. 0, 0, 3, 0, 0, 0,
  226. 2, 0, 0, 0, 3, 12,
  227. 0, 0, 125, 0, 0, 0,
  228. 1, 0, 0, 0, 0, 0,
  229. 0, 0, 3, 0, 0, 0,
  230. 3, 0, 0, 0, 7, 8,
  231. 0, 0, 80, 79, 83, 73,
  232. 84, 73, 79, 78, 0, 83,
  233. 86, 95, 80, 79, 83, 73,
  234. 84, 73, 79, 78, 0, 84,
  235. 69, 88, 67, 79, 79, 82,
  236. 68, 0, 171, 171, 83, 72,
  237. 69, 88, 100, 3, 0, 0,
  238. 80, 0, 1, 0, 217, 0,
  239. 0, 0, 106, 8, 0, 1,
  240. 89, 8, 0, 4, 70, 142,
  241. 32, 0, 0, 0, 0, 0,
  242. 0, 2, 0, 0, 89, 0,
  243. 0, 4, 70, 142, 32, 0,
  244. 1, 0, 0, 0, 8, 0,
  245. 0, 0, 95, 0, 0, 3,
  246. 114, 16, 16, 0, 0, 0,
  247. 0, 0, 95, 0, 0, 3,
  248. 50, 16, 16, 0, 1, 0,
  249. 0, 0, 95, 0, 0, 3,
  250. 114, 16, 16, 0, 2, 0,
  251. 0, 0, 95, 0, 0, 3,
  252. 18, 16, 16, 0, 3, 0,
  253. 0, 0, 101, 0, 0, 3,
  254. 242, 32, 16, 0, 0, 0,
  255. 0, 0, 103, 0, 0, 4,
  256. 242, 32, 16, 0, 1, 0,
  257. 0, 0, 1, 0, 0, 0,
  258. 101, 0, 0, 3, 50, 32,
  259. 16, 0, 2, 0, 0, 0,
  260. 101, 0, 0, 3, 114, 32,
  261. 16, 0, 3, 0, 0, 0,
  262. 104, 0, 0, 2, 3, 0,
  263. 0, 0, 54, 0, 0, 5,
  264. 114, 0, 16, 0, 0, 0,
  265. 0, 0, 70, 18, 16, 0,
  266. 0, 0, 0, 0, 54, 0,
  267. 0, 5, 130, 0, 16, 0,
  268. 0, 0, 0, 0, 1, 64,
  269. 0, 0, 0, 0, 128, 63,
  270. 41, 0, 0, 7, 18, 0,
  271. 16, 0, 1, 0, 0, 0,
  272. 10, 16, 16, 0, 3, 0,
  273. 0, 0, 1, 64, 0, 0,
  274. 2, 0, 0, 0, 17, 0,
  275. 0, 9, 18, 0, 16, 0,
  276. 2, 0, 0, 0, 70, 14,
  277. 16, 0, 0, 0, 0, 0,
  278. 70, 142, 32, 4, 0, 0,
  279. 0, 0, 10, 0, 16, 0,
  280. 1, 0, 0, 0, 17, 0,
  281. 0, 10, 34, 0, 16, 0,
  282. 2, 0, 0, 0, 70, 14,
  283. 16, 0, 0, 0, 0, 0,
  284. 70, 142, 32, 6, 0, 0,
  285. 0, 0, 1, 0, 0, 0,
  286. 10, 0, 16, 0, 1, 0,
  287. 0, 0, 17, 0, 0, 10,
  288. 66, 0, 16, 0, 2, 0,
  289. 0, 0, 70, 14, 16, 0,
  290. 0, 0, 0, 0, 70, 142,
  291. 32, 6, 0, 0, 0, 0,
  292. 2, 0, 0, 0, 10, 0,
  293. 16, 0, 1, 0, 0, 0,
  294. 17, 0, 0, 10, 130, 0,
  295. 16, 0, 2, 0, 0, 0,
  296. 70, 14, 16, 0, 0, 0,
  297. 0, 0, 70, 142, 32, 6,
  298. 0, 0, 0, 0, 3, 0,
  299. 0, 0, 10, 0, 16, 0,
  300. 1, 0, 0, 0, 54, 0,
  301. 0, 5, 242, 32, 16, 0,
  302. 0, 0, 0, 0, 70, 14,
  303. 16, 0, 2, 0, 0, 0,
  304. 17, 0, 0, 8, 18, 0,
  305. 16, 0, 0, 0, 0, 0,
  306. 70, 14, 16, 0, 2, 0,
  307. 0, 0, 70, 142, 32, 0,
  308. 1, 0, 0, 0, 0, 0,
  309. 0, 0, 17, 0, 0, 8,
  310. 34, 0, 16, 0, 0, 0,
  311. 0, 0, 70, 14, 16, 0,
  312. 2, 0, 0, 0, 70, 142,
  313. 32, 0, 1, 0, 0, 0,
  314. 1, 0, 0, 0, 17, 0,
  315. 0, 8, 66, 0, 16, 0,
  316. 0, 0, 0, 0, 70, 14,
  317. 16, 0, 2, 0, 0, 0,
  318. 70, 142, 32, 0, 1, 0,
  319. 0, 0, 2, 0, 0, 0,
  320. 17, 0, 0, 8, 130, 0,
  321. 16, 0, 0, 0, 0, 0,
  322. 70, 14, 16, 0, 2, 0,
  323. 0, 0, 70, 142, 32, 0,
  324. 1, 0, 0, 0, 3, 0,
  325. 0, 0, 17, 0, 0, 8,
  326. 18, 32, 16, 0, 1, 0,
  327. 0, 0, 70, 14, 16, 0,
  328. 0, 0, 0, 0, 70, 142,
  329. 32, 0, 1, 0, 0, 0,
  330. 4, 0, 0, 0, 17, 0,
  331. 0, 8, 34, 32, 16, 0,
  332. 1, 0, 0, 0, 70, 14,
  333. 16, 0, 0, 0, 0, 0,
  334. 70, 142, 32, 0, 1, 0,
  335. 0, 0, 5, 0, 0, 0,
  336. 17, 0, 0, 8, 66, 32,
  337. 16, 0, 1, 0, 0, 0,
  338. 70, 14, 16, 0, 0, 0,
  339. 0, 0, 70, 142, 32, 0,
  340. 1, 0, 0, 0, 6, 0,
  341. 0, 0, 17, 0, 0, 8,
  342. 130, 32, 16, 0, 1, 0,
  343. 0, 0, 70, 14, 16, 0,
  344. 0, 0, 0, 0, 70, 142,
  345. 32, 0, 1, 0, 0, 0,
  346. 7, 0, 0, 0, 54, 0,
  347. 0, 5, 50, 32, 16, 0,
  348. 2, 0, 0, 0, 70, 16,
  349. 16, 0, 1, 0, 0, 0,
  350. 16, 0, 0, 9, 18, 0,
  351. 16, 0, 0, 0, 0, 0,
  352. 70, 18, 16, 0, 2, 0,
  353. 0, 0, 70, 130, 32, 4,
  354. 0, 0, 0, 0, 10, 0,
  355. 16, 0, 1, 0, 0, 0,
  356. 16, 0, 0, 10, 34, 0,
  357. 16, 0, 0, 0, 0, 0,
  358. 70, 18, 16, 0, 2, 0,
  359. 0, 0, 70, 130, 32, 6,
  360. 0, 0, 0, 0, 1, 0,
  361. 0, 0, 10, 0, 16, 0,
  362. 1, 0, 0, 0, 16, 0,
  363. 0, 10, 66, 0, 16, 0,
  364. 0, 0, 0, 0, 70, 18,
  365. 16, 0, 2, 0, 0, 0,
  366. 70, 130, 32, 6, 0, 0,
  367. 0, 0, 2, 0, 0, 0,
  368. 10, 0, 16, 0, 1, 0,
  369. 0, 0, 16, 0, 0, 7,
  370. 130, 0, 16, 0, 0, 0,
  371. 0, 0, 70, 2, 16, 0,
  372. 0, 0, 0, 0, 70, 2,
  373. 16, 0, 0, 0, 0, 0,
  374. 68, 0, 0, 5, 130, 0,
  375. 16, 0, 0, 0, 0, 0,
  376. 58, 0, 16, 0, 0, 0,
  377. 0, 0, 56, 0, 0, 7,
  378. 114, 32, 16, 0, 3, 0,
  379. 0, 0, 246, 15, 16, 0,
  380. 0, 0, 0, 0, 70, 2,
  381. 16, 0, 0, 0, 0, 0,
  382. 62, 0, 0, 1, 83, 84,
  383. 65, 84, 148, 0, 0, 0,
  384. 24, 0, 0, 0, 3, 0,
  385. 0, 0, 0, 0, 0, 0,
  386. 8, 0, 0, 0, 18, 0,
  387. 0, 0, 1, 0, 0, 0,
  388. 0, 0, 0, 0, 1, 0,
  389. 0, 0, 0, 0, 0, 0,
  390. 0, 0, 0, 0, 0, 0,
  391. 0, 0, 0, 0, 0, 0,
  392. 0, 0, 0, 0, 0, 0,
  393. 0, 0, 0, 0, 0, 0,
  394. 0, 0, 0, 0, 0, 0,
  395. 0, 0, 0, 0, 0, 0,
  396. 0, 0, 0, 0, 4, 0,
  397. 0, 0, 0, 0, 0, 0,
  398. 0, 0, 0, 0, 0, 0,
  399. 0, 0, 0, 0, 0, 0,
  400. 0, 0, 0, 0, 0, 0,
  401. 0, 0, 0, 0, 0, 0,
  402. 0, 0, 0, 0, 0, 0,
  403. 0, 0, 0, 0, 0, 0,
  404. 0, 0, 0, 0, 0, 0,
  405. 0, 0, 0, 0, 0, 0,
  406. 0, 0, 0, 0, 0, 0,
  407. 0, 0, 0, 0, 0, 0,
  408. 0, 0, 0, 0
  409. };