nuklear_d3d11_vertex_shader.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. #if 0
  2. //
  3. // Generated by Microsoft (R) D3D Shader Disassembler
  4. //
  5. //
  6. // Input signature:
  7. //
  8. // Name Index Mask Register SysValue Format Used
  9. // -------------------- ----- ------ -------- -------- ------- ------
  10. // POSITION 0 xy 0 NONE float xy
  11. // COLOR 0 xyzw 1 NONE float xyzw
  12. // TEXCOORD 0 xy 2 NONE float xy
  13. //
  14. //
  15. // Output signature:
  16. //
  17. // Name Index Mask Register SysValue Format Used
  18. // -------------------- ----- ------ -------- -------- ------- ------
  19. // SV_POSITION 0 xyzw 0 POS float xyzw
  20. // COLOR 0 xyzw 1 NONE float xyzw
  21. // TEXCOORD 0 xy 2 NONE float xy
  22. //
  23. //
  24. // Constant buffer to DX9 shader constant mappings:
  25. //
  26. // Target Reg Buffer Start Reg # of Regs Data Conversion
  27. // ---------- ------- --------- --------- ----------------------
  28. // c1 cb0 0 4 ( FLT, FLT, FLT, FLT)
  29. //
  30. //
  31. // Runtime generated constant mappings:
  32. //
  33. // Target Reg Constant Description
  34. // ---------- --------------------------------------------------
  35. // c0 Vertex Shader position offset
  36. //
  37. //
  38. // Level9 shader bytecode:
  39. //
  40. vs_2_0
  41. def c5, 0, 1, 0, 0
  42. dcl_texcoord v0
  43. dcl_texcoord1 v1
  44. dcl_texcoord2 v2
  45. mul r0, v0.x, c1
  46. mad r0, c2, v0.y, r0
  47. mov r1.xy, c5
  48. mad r0, c3, r1.x, r0
  49. mad r0, c4, r1.y, r0
  50. mul r1.xy, r0.w, c0
  51. add oPos.xy, r0, r1
  52. mov oPos.zw, r0
  53. mov oT0, v1
  54. mov oT1.xy, v2
  55. // approximately 10 instruction slots used
  56. //
  57. // Constant buffer to DX9 shader constant mappings:
  58. //
  59. // Target Reg Buffer Start Reg # of Regs Data Conversion
  60. // ---------- ------- --------- --------- ----------------------
  61. // c0 cb0 0 4 ( FLT, FLT, FLT, FLT)
  62. //
  63. //
  64. // XNA Prepass shader bytecode:
  65. //
  66. vs_2_0
  67. def c4, 0, 1, 0, 0
  68. dcl_texcoord v0
  69. mul r1, r0.x, c0
  70. mad r0, c1, r0.y, r1
  71. mov r1.xy, c4
  72. mad r0, c2, r1.x, r0
  73. mad r0, c3, r1.y, r0
  74. mov oPos, r0
  75. // approximately 6 instruction slots used
  76. //
  77. // Constant buffer to DX9 shader constant mappings:
  78. //
  79. // Target Reg Buffer Start Reg # of Regs Data Conversion
  80. // ---------- ------- --------- --------- ----------------------
  81. // c0 cb0 0 4 ( FLT, FLT, FLT, FLT)
  82. //
  83. //
  84. // XNA shader bytecode:
  85. //
  86. vs_2_0
  87. def c4, 0, 1, 0, 0
  88. dcl_texcoord v0
  89. dcl_texcoord1 v1
  90. dcl_texcoord2 v2
  91. mov oT0, r1
  92. mov oT1.xy, r2
  93. mul r1, r0.x, c0
  94. mad r0, c1, r0.y, r1
  95. mov r1.xy, c4
  96. mad r0, c2, r1.x, r0
  97. mad r0, c3, r1.y, r0
  98. mov oPos, r0
  99. // approximately 8 instruction slots used
  100. vs_4_0
  101. dcl_constantbuffer cb0[4], immediateIndexed
  102. dcl_input v0.xy
  103. dcl_input v1.xyzw
  104. dcl_input v2.xy
  105. dcl_output_siv o0.xyzw, position
  106. dcl_output o1.xyzw
  107. dcl_output o2.xy
  108. dcl_temps 1
  109. mul r0.xyzw, v0.xxxx, cb0[0].xyzw
  110. mad r0.xyzw, cb0[1].xyzw, v0.yyyy, r0.xyzw
  111. mad r0.xyzw, cb0[2].xyzw, l(0.000000, 0.000000, 0.000000, 0.000000), r0.xyzw
  112. mad o0.xyzw, cb0[3].xyzw, l(1.000000, 1.000000, 1.000000, 1.000000), r0.xyzw
  113. mov o1.xyzw, v1.xyzw
  114. mov o2.xy, v2.xyxx
  115. ret
  116. // Approximately 0 instruction slots used
  117. #endif
  118. const BYTE nk_d3d11_vertex_shader[] =
  119. {
  120. 68, 88, 66, 67, 215, 245,
  121. 86, 155, 188, 117, 37, 118,
  122. 193, 207, 209, 90, 160, 153,
  123. 246, 188, 1, 0, 0, 0,
  124. 72, 5, 0, 0, 6, 0,
  125. 0, 0, 56, 0, 0, 0,
  126. 48, 1, 0, 0, 248, 1,
  127. 0, 0, 20, 3, 0, 0,
  128. 100, 4, 0, 0, 212, 4,
  129. 0, 0, 88, 78, 65, 83,
  130. 240, 0, 0, 0, 240, 0,
  131. 0, 0, 0, 2, 254, 255,
  132. 192, 0, 0, 0, 48, 0,
  133. 0, 0, 1, 0, 36, 0,
  134. 0, 0, 48, 0, 0, 0,
  135. 48, 0, 0, 0, 36, 0,
  136. 0, 0, 48, 0, 0, 0,
  137. 0, 0, 4, 0, 0, 0,
  138. 0, 0, 0, 0, 0, 2,
  139. 254, 255, 81, 0, 0, 5,
  140. 4, 0, 15, 160, 0, 0,
  141. 0, 0, 0, 0, 128, 63,
  142. 0, 0, 0, 0, 0, 0,
  143. 0, 0, 31, 0, 0, 2,
  144. 5, 0, 0, 128, 0, 0,
  145. 15, 144, 31, 0, 0, 2,
  146. 5, 0, 1, 128, 1, 0,
  147. 15, 144, 31, 0, 0, 2,
  148. 5, 0, 2, 128, 2, 0,
  149. 15, 144, 1, 0, 0, 2,
  150. 0, 0, 15, 224, 1, 0,
  151. 228, 128, 1, 0, 0, 2,
  152. 1, 0, 3, 224, 2, 0,
  153. 228, 128, 5, 0, 0, 3,
  154. 1, 0, 15, 128, 0, 0,
  155. 0, 128, 0, 0, 228, 160,
  156. 4, 0, 0, 4, 0, 0,
  157. 15, 128, 1, 0, 228, 160,
  158. 0, 0, 85, 128, 1, 0,
  159. 228, 128, 1, 0, 0, 2,
  160. 1, 0, 3, 128, 4, 0,
  161. 228, 160, 4, 0, 0, 4,
  162. 0, 0, 15, 128, 2, 0,
  163. 228, 160, 1, 0, 0, 128,
  164. 0, 0, 228, 128, 4, 0,
  165. 0, 4, 0, 0, 15, 128,
  166. 3, 0, 228, 160, 1, 0,
  167. 85, 128, 0, 0, 228, 128,
  168. 1, 0, 0, 2, 0, 0,
  169. 15, 192, 0, 0, 228, 128,
  170. 255, 255, 0, 0, 88, 78,
  171. 65, 80, 192, 0, 0, 0,
  172. 192, 0, 0, 0, 0, 2,
  173. 254, 255, 144, 0, 0, 0,
  174. 48, 0, 0, 0, 1, 0,
  175. 36, 0, 0, 0, 48, 0,
  176. 0, 0, 48, 0, 0, 0,
  177. 36, 0, 0, 0, 48, 0,
  178. 0, 0, 0, 0, 4, 0,
  179. 0, 0, 0, 0, 0, 0,
  180. 0, 2, 254, 255, 81, 0,
  181. 0, 5, 4, 0, 15, 160,
  182. 0, 0, 0, 0, 0, 0,
  183. 128, 63, 0, 0, 0, 0,
  184. 0, 0, 0, 0, 31, 0,
  185. 0, 2, 5, 0, 0, 128,
  186. 0, 0, 15, 144, 5, 0,
  187. 0, 3, 1, 0, 15, 128,
  188. 0, 0, 0, 128, 0, 0,
  189. 228, 160, 4, 0, 0, 4,
  190. 0, 0, 15, 128, 1, 0,
  191. 228, 160, 0, 0, 85, 128,
  192. 1, 0, 228, 128, 1, 0,
  193. 0, 2, 1, 0, 3, 128,
  194. 4, 0, 228, 160, 4, 0,
  195. 0, 4, 0, 0, 15, 128,
  196. 2, 0, 228, 160, 1, 0,
  197. 0, 128, 0, 0, 228, 128,
  198. 4, 0, 0, 4, 0, 0,
  199. 15, 128, 3, 0, 228, 160,
  200. 1, 0, 85, 128, 0, 0,
  201. 228, 128, 1, 0, 0, 2,
  202. 0, 0, 15, 192, 0, 0,
  203. 228, 128, 255, 255, 0, 0,
  204. 65, 111, 110, 57, 20, 1,
  205. 0, 0, 20, 1, 0, 0,
  206. 0, 2, 254, 255, 224, 0,
  207. 0, 0, 52, 0, 0, 0,
  208. 1, 0, 36, 0, 0, 0,
  209. 48, 0, 0, 0, 48, 0,
  210. 0, 0, 36, 0, 1, 0,
  211. 48, 0, 0, 0, 0, 0,
  212. 4, 0, 1, 0, 0, 0,
  213. 0, 0, 0, 0, 0, 0,
  214. 0, 2, 254, 255, 81, 0,
  215. 0, 5, 5, 0, 15, 160,
  216. 0, 0, 0, 0, 0, 0,
  217. 128, 63, 0, 0, 0, 0,
  218. 0, 0, 0, 0, 31, 0,
  219. 0, 2, 5, 0, 0, 128,
  220. 0, 0, 15, 144, 31, 0,
  221. 0, 2, 5, 0, 1, 128,
  222. 1, 0, 15, 144, 31, 0,
  223. 0, 2, 5, 0, 2, 128,
  224. 2, 0, 15, 144, 5, 0,
  225. 0, 3, 0, 0, 15, 128,
  226. 0, 0, 0, 144, 1, 0,
  227. 228, 160, 4, 0, 0, 4,
  228. 0, 0, 15, 128, 2, 0,
  229. 228, 160, 0, 0, 85, 144,
  230. 0, 0, 228, 128, 1, 0,
  231. 0, 2, 1, 0, 3, 128,
  232. 5, 0, 228, 160, 4, 0,
  233. 0, 4, 0, 0, 15, 128,
  234. 3, 0, 228, 160, 1, 0,
  235. 0, 128, 0, 0, 228, 128,
  236. 4, 0, 0, 4, 0, 0,
  237. 15, 128, 4, 0, 228, 160,
  238. 1, 0, 85, 128, 0, 0,
  239. 228, 128, 5, 0, 0, 3,
  240. 1, 0, 3, 128, 0, 0,
  241. 255, 128, 0, 0, 228, 160,
  242. 2, 0, 0, 3, 0, 0,
  243. 3, 192, 0, 0, 228, 128,
  244. 1, 0, 228, 128, 1, 0,
  245. 0, 2, 0, 0, 12, 192,
  246. 0, 0, 228, 128, 1, 0,
  247. 0, 2, 0, 0, 15, 224,
  248. 1, 0, 228, 144, 1, 0,
  249. 0, 2, 1, 0, 3, 224,
  250. 2, 0, 228, 144, 255, 255,
  251. 0, 0, 83, 72, 68, 82,
  252. 72, 1, 0, 0, 64, 0,
  253. 1, 0, 82, 0, 0, 0,
  254. 89, 0, 0, 4, 70, 142,
  255. 32, 0, 0, 0, 0, 0,
  256. 4, 0, 0, 0, 95, 0,
  257. 0, 3, 50, 16, 16, 0,
  258. 0, 0, 0, 0, 95, 0,
  259. 0, 3, 242, 16, 16, 0,
  260. 1, 0, 0, 0, 95, 0,
  261. 0, 3, 50, 16, 16, 0,
  262. 2, 0, 0, 0, 103, 0,
  263. 0, 4, 242, 32, 16, 0,
  264. 0, 0, 0, 0, 1, 0,
  265. 0, 0, 101, 0, 0, 3,
  266. 242, 32, 16, 0, 1, 0,
  267. 0, 0, 101, 0, 0, 3,
  268. 50, 32, 16, 0, 2, 0,
  269. 0, 0, 104, 0, 0, 2,
  270. 1, 0, 0, 0, 56, 0,
  271. 0, 8, 242, 0, 16, 0,
  272. 0, 0, 0, 0, 6, 16,
  273. 16, 0, 0, 0, 0, 0,
  274. 70, 142, 32, 0, 0, 0,
  275. 0, 0, 0, 0, 0, 0,
  276. 50, 0, 0, 10, 242, 0,
  277. 16, 0, 0, 0, 0, 0,
  278. 70, 142, 32, 0, 0, 0,
  279. 0, 0, 1, 0, 0, 0,
  280. 86, 21, 16, 0, 0, 0,
  281. 0, 0, 70, 14, 16, 0,
  282. 0, 0, 0, 0, 50, 0,
  283. 0, 13, 242, 0, 16, 0,
  284. 0, 0, 0, 0, 70, 142,
  285. 32, 0, 0, 0, 0, 0,
  286. 2, 0, 0, 0, 2, 64,
  287. 0, 0, 0, 0, 0, 0,
  288. 0, 0, 0, 0, 0, 0,
  289. 0, 0, 0, 0, 0, 0,
  290. 70, 14, 16, 0, 0, 0,
  291. 0, 0, 50, 0, 0, 13,
  292. 242, 32, 16, 0, 0, 0,
  293. 0, 0, 70, 142, 32, 0,
  294. 0, 0, 0, 0, 3, 0,
  295. 0, 0, 2, 64, 0, 0,
  296. 0, 0, 128, 63, 0, 0,
  297. 128, 63, 0, 0, 128, 63,
  298. 0, 0, 128, 63, 70, 14,
  299. 16, 0, 0, 0, 0, 0,
  300. 54, 0, 0, 5, 242, 32,
  301. 16, 0, 1, 0, 0, 0,
  302. 70, 30, 16, 0, 1, 0,
  303. 0, 0, 54, 0, 0, 5,
  304. 50, 32, 16, 0, 2, 0,
  305. 0, 0, 70, 16, 16, 0,
  306. 2, 0, 0, 0, 62, 0,
  307. 0, 1, 73, 83, 71, 78,
  308. 104, 0, 0, 0, 3, 0,
  309. 0, 0, 8, 0, 0, 0,
  310. 80, 0, 0, 0, 0, 0,
  311. 0, 0, 0, 0, 0, 0,
  312. 3, 0, 0, 0, 0, 0,
  313. 0, 0, 3, 3, 0, 0,
  314. 89, 0, 0, 0, 0, 0,
  315. 0, 0, 0, 0, 0, 0,
  316. 3, 0, 0, 0, 1, 0,
  317. 0, 0, 15, 15, 0, 0,
  318. 95, 0, 0, 0, 0, 0,
  319. 0, 0, 0, 0, 0, 0,
  320. 3, 0, 0, 0, 2, 0,
  321. 0, 0, 3, 3, 0, 0,
  322. 80, 79, 83, 73, 84, 73,
  323. 79, 78, 0, 67, 79, 76,
  324. 79, 82, 0, 84, 69, 88,
  325. 67, 79, 79, 82, 68, 0,
  326. 79, 83, 71, 78, 108, 0,
  327. 0, 0, 3, 0, 0, 0,
  328. 8, 0, 0, 0, 80, 0,
  329. 0, 0, 0, 0, 0, 0,
  330. 1, 0, 0, 0, 3, 0,
  331. 0, 0, 0, 0, 0, 0,
  332. 15, 0, 0, 0, 92, 0,
  333. 0, 0, 0, 0, 0, 0,
  334. 0, 0, 0, 0, 3, 0,
  335. 0, 0, 1, 0, 0, 0,
  336. 15, 0, 0, 0, 98, 0,
  337. 0, 0, 0, 0, 0, 0,
  338. 0, 0, 0, 0, 3, 0,
  339. 0, 0, 2, 0, 0, 0,
  340. 3, 12, 0, 0, 83, 86,
  341. 95, 80, 79, 83, 73, 84,
  342. 73, 79, 78, 0, 67, 79,
  343. 76, 79, 82, 0, 84, 69,
  344. 88, 67, 79, 79, 82, 68,
  345. 0, 171
  346. };