UIVertexShader.h 13 KB

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