DX12VertexShader.h 15 KB

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