Ingen beskrivning
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SimdDebugViews.cs 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. using System;
  2. using System.Diagnostics;
  3. using System.Runtime.InteropServices;
  4. namespace Unity.Burst.Intrinsics
  5. {
  6. internal unsafe class V64DebugView
  7. {
  8. v64 m_Value;
  9. public V64DebugView(v64 value)
  10. {
  11. m_Value = value;
  12. }
  13. #if !UNITY_DOTSPLAYER
  14. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  15. #endif
  16. public unsafe byte[] Byte
  17. {
  18. get
  19. {
  20. return new byte[]
  21. {
  22. m_Value.Byte0, m_Value.Byte1, m_Value.Byte2, m_Value.Byte3,
  23. m_Value.Byte4, m_Value.Byte5, m_Value.Byte6, m_Value.Byte7,
  24. };
  25. }
  26. }
  27. #if !UNITY_DOTSPLAYER
  28. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  29. #endif
  30. public unsafe sbyte[] SByte
  31. {
  32. get
  33. {
  34. return new sbyte[]
  35. {
  36. m_Value.SByte0, m_Value.SByte1, m_Value.SByte2, m_Value.SByte3,
  37. m_Value.SByte4, m_Value.SByte5, m_Value.SByte6, m_Value.SByte7,
  38. };
  39. }
  40. }
  41. #if !UNITY_DOTSPLAYER
  42. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  43. #endif
  44. public unsafe ushort[] UShort
  45. {
  46. get
  47. {
  48. return new ushort[]
  49. {
  50. m_Value.UShort0, m_Value.UShort1, m_Value.UShort2, m_Value.UShort3,
  51. };
  52. }
  53. }
  54. #if !UNITY_DOTSPLAYER
  55. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  56. #endif
  57. public unsafe short[] SShort
  58. {
  59. get
  60. {
  61. return new short[]
  62. {
  63. m_Value.SShort0, m_Value.SShort1, m_Value.SShort2, m_Value.SShort3,
  64. };
  65. }
  66. }
  67. #if !UNITY_DOTSPLAYER
  68. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  69. #endif
  70. public unsafe uint[] UInt
  71. {
  72. get
  73. {
  74. return new uint[]
  75. {
  76. m_Value.UInt0, m_Value.UInt1,
  77. };
  78. }
  79. }
  80. #if !UNITY_DOTSPLAYER
  81. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  82. #endif
  83. public unsafe int[] SInt
  84. {
  85. get
  86. {
  87. return new int[]
  88. {
  89. m_Value.SInt0, m_Value.SInt1,
  90. };
  91. }
  92. }
  93. #if !UNITY_DOTSPLAYER
  94. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  95. #endif
  96. public unsafe float[] Float
  97. {
  98. get
  99. {
  100. return new float[]
  101. {
  102. m_Value.Float0, m_Value.Float1,
  103. };
  104. }
  105. }
  106. #if !UNITY_DOTSPLAYER
  107. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  108. #endif
  109. public unsafe long[] SLong
  110. {
  111. get
  112. {
  113. return new long[]
  114. {
  115. m_Value.SLong0,
  116. };
  117. }
  118. }
  119. #if !UNITY_DOTSPLAYER
  120. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  121. #endif
  122. public unsafe ulong[] ULong
  123. {
  124. get
  125. {
  126. return new ulong[]
  127. {
  128. m_Value.ULong0,
  129. };
  130. }
  131. }
  132. #if !UNITY_DOTSPLAYER
  133. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  134. #endif
  135. public unsafe double[] Double
  136. {
  137. get
  138. {
  139. return new double[]
  140. {
  141. m_Value.Double0,
  142. };
  143. }
  144. }
  145. }
  146. internal unsafe class V128DebugView
  147. {
  148. v128 m_Value;
  149. public V128DebugView(v128 value)
  150. {
  151. m_Value = value;
  152. }
  153. #if !UNITY_DOTSPLAYER
  154. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  155. #endif
  156. public unsafe byte[] Byte
  157. {
  158. get
  159. {
  160. return new byte[]
  161. {
  162. m_Value.Byte0, m_Value.Byte1, m_Value.Byte2, m_Value.Byte3,
  163. m_Value.Byte4, m_Value.Byte5, m_Value.Byte6, m_Value.Byte7,
  164. m_Value.Byte8, m_Value.Byte9, m_Value.Byte10, m_Value.Byte11,
  165. m_Value.Byte12, m_Value.Byte13, m_Value.Byte14, m_Value.Byte15,
  166. };
  167. }
  168. }
  169. #if !UNITY_DOTSPLAYER
  170. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  171. #endif
  172. public unsafe sbyte[] SByte
  173. {
  174. get
  175. {
  176. return new sbyte[]
  177. {
  178. m_Value.SByte0, m_Value.SByte1, m_Value.SByte2, m_Value.SByte3,
  179. m_Value.SByte4, m_Value.SByte5, m_Value.SByte6, m_Value.SByte7,
  180. m_Value.SByte8, m_Value.SByte9, m_Value.SByte10, m_Value.SByte11,
  181. m_Value.SByte12, m_Value.SByte13, m_Value.SByte14, m_Value.SByte15,
  182. };
  183. }
  184. }
  185. #if !UNITY_DOTSPLAYER
  186. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  187. #endif
  188. public unsafe ushort[] UShort
  189. {
  190. get
  191. {
  192. return new ushort[]
  193. {
  194. m_Value.UShort0, m_Value.UShort1, m_Value.UShort2, m_Value.UShort3,
  195. m_Value.UShort4, m_Value.UShort5, m_Value.UShort6, m_Value.UShort7,
  196. };
  197. }
  198. }
  199. #if !UNITY_DOTSPLAYER
  200. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  201. #endif
  202. public unsafe short[] SShort
  203. {
  204. get
  205. {
  206. return new short[]
  207. {
  208. m_Value.SShort0, m_Value.SShort1, m_Value.SShort2, m_Value.SShort3,
  209. m_Value.SShort4, m_Value.SShort5, m_Value.SShort6, m_Value.SShort7,
  210. };
  211. }
  212. }
  213. #if !UNITY_DOTSPLAYER
  214. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  215. #endif
  216. public unsafe uint[] UInt
  217. {
  218. get
  219. {
  220. return new uint[]
  221. {
  222. m_Value.UInt0, m_Value.UInt1, m_Value.UInt2, m_Value.UInt3,
  223. };
  224. }
  225. }
  226. #if !UNITY_DOTSPLAYER
  227. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  228. #endif
  229. public unsafe int[] SInt
  230. {
  231. get
  232. {
  233. return new int[]
  234. {
  235. m_Value.SInt0, m_Value.SInt1, m_Value.SInt2, m_Value.SInt3,
  236. };
  237. }
  238. }
  239. #if !UNITY_DOTSPLAYER
  240. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  241. #endif
  242. public unsafe float[] Float
  243. {
  244. get
  245. {
  246. return new float[]
  247. {
  248. m_Value.Float0, m_Value.Float1, m_Value.Float2, m_Value.Float3,
  249. };
  250. }
  251. }
  252. #if !UNITY_DOTSPLAYER
  253. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  254. #endif
  255. public unsafe long[] SLong
  256. {
  257. get
  258. {
  259. return new long[]
  260. {
  261. m_Value.SLong0, m_Value.SLong1,
  262. };
  263. }
  264. }
  265. #if !UNITY_DOTSPLAYER
  266. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  267. #endif
  268. public unsafe ulong[] ULong
  269. {
  270. get
  271. {
  272. return new ulong[]
  273. {
  274. m_Value.ULong0, m_Value.ULong1,
  275. };
  276. }
  277. }
  278. #if !UNITY_DOTSPLAYER
  279. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  280. #endif
  281. public unsafe double[] Double
  282. {
  283. get
  284. {
  285. return new double[]
  286. {
  287. m_Value.Double0, m_Value.Double1,
  288. };
  289. }
  290. }
  291. }
  292. internal unsafe class V256DebugView
  293. {
  294. v256 m_Value;
  295. public V256DebugView(v256 value)
  296. {
  297. m_Value = value;
  298. }
  299. #if !UNITY_DOTSPLAYER
  300. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  301. #endif
  302. public unsafe byte[] Byte
  303. {
  304. get
  305. {
  306. return new byte[]
  307. {
  308. m_Value.Byte0, m_Value.Byte1, m_Value.Byte2, m_Value.Byte3,
  309. m_Value.Byte4, m_Value.Byte5, m_Value.Byte6, m_Value.Byte7,
  310. m_Value.Byte8, m_Value.Byte9, m_Value.Byte10, m_Value.Byte11,
  311. m_Value.Byte12, m_Value.Byte13, m_Value.Byte14, m_Value.Byte15,
  312. m_Value.Byte16, m_Value.Byte17, m_Value.Byte18, m_Value.Byte19,
  313. m_Value.Byte20, m_Value.Byte21, m_Value.Byte22, m_Value.Byte23,
  314. m_Value.Byte24, m_Value.Byte25, m_Value.Byte26, m_Value.Byte27,
  315. m_Value.Byte28, m_Value.Byte29, m_Value.Byte30, m_Value.Byte31,
  316. };
  317. }
  318. }
  319. #if !UNITY_DOTSPLAYER
  320. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  321. #endif
  322. public unsafe sbyte[] SByte
  323. {
  324. get
  325. {
  326. return new sbyte[]
  327. {
  328. m_Value.SByte0, m_Value.SByte1, m_Value.SByte2, m_Value.SByte3,
  329. m_Value.SByte4, m_Value.SByte5, m_Value.SByte6, m_Value.SByte7,
  330. m_Value.SByte8, m_Value.SByte9, m_Value.SByte10, m_Value.SByte11,
  331. m_Value.SByte12, m_Value.SByte13, m_Value.SByte14, m_Value.SByte15,
  332. m_Value.SByte16, m_Value.SByte17, m_Value.SByte18, m_Value.SByte19,
  333. m_Value.SByte20, m_Value.SByte21, m_Value.SByte22, m_Value.SByte23,
  334. m_Value.SByte24, m_Value.SByte25, m_Value.SByte26, m_Value.SByte27,
  335. m_Value.SByte28, m_Value.SByte29, m_Value.SByte30, m_Value.SByte31,
  336. };
  337. }
  338. }
  339. #if !UNITY_DOTSPLAYER
  340. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  341. #endif
  342. public unsafe ushort[] UShort
  343. {
  344. get
  345. {
  346. return new ushort[]
  347. {
  348. m_Value.UShort0, m_Value.UShort1, m_Value.UShort2, m_Value.UShort3,
  349. m_Value.UShort4, m_Value.UShort5, m_Value.UShort6, m_Value.UShort7,
  350. m_Value.UShort8, m_Value.UShort9, m_Value.UShort10, m_Value.UShort11,
  351. m_Value.UShort12, m_Value.UShort13, m_Value.UShort14, m_Value.UShort15,
  352. };
  353. }
  354. }
  355. #if !UNITY_DOTSPLAYER
  356. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  357. #endif
  358. public unsafe short[] SShort
  359. {
  360. get
  361. {
  362. return new short[]
  363. {
  364. m_Value.SShort0, m_Value.SShort1, m_Value.SShort2, m_Value.SShort3,
  365. m_Value.SShort4, m_Value.SShort5, m_Value.SShort6, m_Value.SShort7,
  366. m_Value.SShort8, m_Value.SShort9, m_Value.SShort10, m_Value.SShort11,
  367. m_Value.SShort12, m_Value.SShort13, m_Value.SShort14, m_Value.SShort15,
  368. };
  369. }
  370. }
  371. #if !UNITY_DOTSPLAYER
  372. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  373. #endif
  374. public unsafe uint[] UInt
  375. {
  376. get
  377. {
  378. return new uint[]
  379. {
  380. m_Value.UInt0, m_Value.UInt1, m_Value.UInt2, m_Value.UInt3,
  381. m_Value.UInt4, m_Value.UInt5, m_Value.UInt6, m_Value.UInt7,
  382. };
  383. }
  384. }
  385. #if !UNITY_DOTSPLAYER
  386. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  387. #endif
  388. public unsafe int[] SInt
  389. {
  390. get
  391. {
  392. return new int[]
  393. {
  394. m_Value.SInt0, m_Value.SInt1, m_Value.SInt2, m_Value.SInt3,
  395. m_Value.SInt4, m_Value.SInt5, m_Value.SInt6, m_Value.SInt7,
  396. };
  397. }
  398. }
  399. #if !UNITY_DOTSPLAYER
  400. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  401. #endif
  402. public unsafe float[] Float
  403. {
  404. get
  405. {
  406. return new float[]
  407. {
  408. m_Value.Float0, m_Value.Float1, m_Value.Float2, m_Value.Float3,
  409. m_Value.Float4, m_Value.Float5, m_Value.Float6, m_Value.Float7,
  410. };
  411. }
  412. }
  413. #if !UNITY_DOTSPLAYER
  414. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  415. #endif
  416. public unsafe long[] SLong
  417. {
  418. get
  419. {
  420. return new long[]
  421. {
  422. m_Value.SLong0, m_Value.SLong1, m_Value.SLong2, m_Value.SLong3,
  423. };
  424. }
  425. }
  426. #if !UNITY_DOTSPLAYER
  427. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  428. #endif
  429. public unsafe ulong[] ULong
  430. {
  431. get
  432. {
  433. return new ulong[]
  434. {
  435. m_Value.ULong0, m_Value.ULong1, m_Value.ULong2, m_Value.ULong3,
  436. };
  437. }
  438. }
  439. #if !UNITY_DOTSPLAYER
  440. [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
  441. #endif
  442. public unsafe double[] Double
  443. {
  444. get
  445. {
  446. return new double[]
  447. {
  448. m_Value.Double0, m_Value.Double1, m_Value.Double2, m_Value.Double3,
  449. };
  450. }
  451. }
  452. }
  453. }