godot.natvis 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
  3. <Type Name="Ref&lt;*&gt;">
  4. <SmartPointer Usage="Minimal">reference</SmartPointer>
  5. <DisplayString Condition="!reference">[empty]</DisplayString>
  6. <DisplayString Condition="!!reference">{*reference}</DisplayString>
  7. <Expand>
  8. <Item Condition="!!reference" Name="[ptr]">reference</Item>
  9. <Item Condition="!!reference" Name="[refcount]">reference->refcount.count.value</Item>
  10. </Expand>
  11. </Type>
  12. <Type Name="Vector&lt;*&gt;">
  13. <Expand>
  14. <Item Name="[size]">_cowdata._ptr ? (((const unsigned long long *)(_cowdata._ptr))[-1]) : 0</Item>
  15. <ArrayItems>
  16. <Size>_cowdata._ptr ? (((const unsigned long long *)(_cowdata._ptr))[-1]) : 0</Size>
  17. <ValuePointer>($T1 *) _cowdata._ptr</ValuePointer>
  18. </ArrayItems>
  19. </Expand>
  20. </Type>
  21. <Type Name="Array">
  22. <Expand>
  23. <Item Name="[size]">_p->array._cowdata._ptr ? (((const unsigned long long *)(_p->array._cowdata._ptr))[-1]) : 0</Item>
  24. <ArrayItems>
  25. <Size>_p->array._cowdata._ptr ? (((const unsigned long long *)(_p->array._cowdata._ptr))[-1]) : 0</Size>
  26. <ValuePointer>(Variant *) _p->array._cowdata._ptr</ValuePointer>
  27. </ArrayItems>
  28. </Expand>
  29. </Type>
  30. <Type Name="Dictionary">
  31. <Expand>
  32. <Item Name="[size]">_p &amp;&amp; _p->variant_map.head_element ? _p->variant_map.num_elements : 0</Item>
  33. <LinkedListItems>
  34. <Size>_p &amp;&amp; _p->variant_map.head_element ? _p->variant_map.num_elements : 0</Size>
  35. <HeadPointer>_p ? _p->variant_map.head_element : nullptr</HeadPointer>
  36. <NextPointer>next</NextPointer>
  37. <ValueNode Name="[{data.key}]">(*this),view(MapHelper)</ValueNode>
  38. </LinkedListItems>
  39. </Expand>
  40. </Type>
  41. <Type Name="LocalVector&lt;*&gt;">
  42. <Expand>
  43. <Item Name="[size]">count</Item>
  44. <ArrayItems>
  45. <Size>count</Size>
  46. <ValuePointer>data</ValuePointer>
  47. </ArrayItems>
  48. </Expand>
  49. </Type>
  50. <Type Name="List&lt;*&gt;">
  51. <Expand>
  52. <Item Name="[size]">_data ? (_data->size_cache) : 0</Item>
  53. <LinkedListItems>
  54. <Size>_data ? (_data->size_cache) : 0</Size>
  55. <HeadPointer>_data->first</HeadPointer>
  56. <NextPointer>next_ptr</NextPointer>
  57. <ValueNode>value</ValueNode>
  58. </LinkedListItems>
  59. </Expand>
  60. </Type>
  61. <Type Name="NodePath">
  62. <DisplayString Condition="!data">[empty]</DisplayString>
  63. <DisplayString Condition="!!data">{{[absolute] = {data->absolute} [path] = {data->path,view(NodePathHelper)} [subpath] = {data->subpath,view(NodePathHelper)}}}</DisplayString>
  64. <Expand>
  65. <Item Name="[path]">data->path,view(NodePathHelper)</Item>
  66. <Item Name="[subpath]">data->subpath,view(NodePathHelper)</Item>
  67. <Item Name="[absolute]">data->absolute</Item>
  68. </Expand>
  69. </Type>
  70. <Type Name="Vector&lt;StringName&gt;" IncludeView="NodePathHelper">
  71. <Expand>
  72. <ArrayItems>
  73. <Size>_cowdata._ptr ? (((const unsigned long long *)(_cowdata._ptr))[-1]) : 0</Size>
  74. <ValuePointer>((StringName *)_cowdata._ptr),view(NodePathHelper)</ValuePointer>
  75. </ArrayItems>
  76. </Expand>
  77. </Type>
  78. <Type Name="StringName" IncludeView="NodePathHelper">
  79. <DisplayString Condition="_data &amp;&amp; _data->cname">{_data->cname,s8b}</DisplayString>
  80. <DisplayString Condition="_data &amp;&amp; !_data->cname">{_data->name,s32b}</DisplayString>
  81. <DisplayString Condition="!_data">[empty]</DisplayString>
  82. <StringView Condition="_data &amp;&amp; _data->cname">_data->cname,s8b</StringView>
  83. <StringView Condition="_data &amp;&amp; !_data->cname">_data->name,s32b</StringView>
  84. </Type>
  85. <Type Name="HashSet&lt;*,*,*&gt;">
  86. <Expand>
  87. <Item Name="[size]">num_elements</Item>
  88. <ArrayItems>
  89. <Size>num_elements</Size>
  90. <ValuePointer>($T1 *) keys._cowdata._ptr</ValuePointer>
  91. </ArrayItems>
  92. </Expand>
  93. </Type>
  94. <Type Name="HashMapElement&lt;*,*&gt;">
  95. <DisplayString>{{Key = {($T1 *) &amp;data.key} Value = {($T2 *) &amp;data.value}}}</DisplayString>
  96. <Expand>
  97. <Item Name="[key]">($T1 *) &amp;data.key</Item>
  98. <Item Name="[value]">($T2 *) &amp;data.value</Item>
  99. </Expand>
  100. </Type>
  101. <!-- elements displayed by index -->
  102. <Type Name="HashMap&lt;*,*,*,*,*&gt;" Priority="Medium">
  103. <Expand>
  104. <Item Name="[size]">head_element ? num_elements : 0</Item>
  105. <LinkedListItems>
  106. <Size>head_element ? num_elements : 0</Size>
  107. <HeadPointer>head_element</HeadPointer>
  108. <NextPointer>next</NextPointer>
  109. <ValueNode>(*this)</ValueNode>
  110. </LinkedListItems>
  111. </Expand>
  112. </Type>
  113. <!-- elements by key:value -->
  114. <!-- show elements by index by specifying "ShowElementsByIndex"-->
  115. <Type Name="HashMap&lt;*,*,*,*,*&gt;" ExcludeView="ShowElementsByIndex" Priority="MediumHigh">
  116. <Expand>
  117. <Item Name="[size]">head_element ? num_elements : 0</Item>
  118. <LinkedListItems>
  119. <Size>head_element ? num_elements : 0</Size>
  120. <HeadPointer>head_element</HeadPointer>
  121. <NextPointer>next</NextPointer>
  122. <ValueNode Name="[{data.key}]">(*this),view(MapHelper)</ValueNode>
  123. </LinkedListItems>
  124. </Expand>
  125. </Type>
  126. <Type Name="KeyValue&lt;*,*&gt;" IncludeView="MapHelper">
  127. <DisplayString>{value}</DisplayString>
  128. </Type>
  129. <Type Name="HashMapElement&lt;*,*&gt;" IncludeView="MapHelper">
  130. <DisplayString>{data.value}</DisplayString>
  131. <Expand>
  132. <Item Name="[key]">($T1 *) &amp;data.key</Item>
  133. <Item Name="[value]">($T2 *) &amp;data.value</Item>
  134. </Expand>
  135. </Type>
  136. <Type Name="VMap&lt;*,*&gt;">
  137. <Expand>
  138. <Item Condition="_cowdata._ptr" Name="[size]">*(reinterpret_cast&lt;long long*&gt;(_cowdata._ptr) - 1)</Item>
  139. <ArrayItems Condition="_cowdata._ptr">
  140. <Size>*(reinterpret_cast&lt;long long*&gt;(_cowdata._ptr) - 1)</Size>
  141. <ValuePointer>reinterpret_cast&lt;VMap&lt;$T1,$T2&gt;::Pair*&gt;(_cowdata._ptr)</ValuePointer>
  142. </ArrayItems>
  143. </Expand>
  144. </Type>
  145. <Type Name="VMap&lt;Callable,*&gt;::Pair">
  146. <DisplayString Condition="dynamic_cast&lt;CallableCustomMethodPointerBase*&gt;(key.custom)">{dynamic_cast&lt;CallableCustomMethodPointerBase*&gt;(key.custom)->text}</DisplayString>
  147. </Type>
  148. <Type Name="Variant">
  149. <DisplayString Condition="type == Variant::NIL">nil</DisplayString>
  150. <DisplayString Condition="type == Variant::BOOL">{_data._bool}</DisplayString>
  151. <DisplayString Condition="type == Variant::INT">{_data._int}</DisplayString>
  152. <DisplayString Condition="type == Variant::FLOAT">{_data._float}</DisplayString>
  153. <DisplayString Condition="type == Variant::TRANSFORM2D">{_data._transform2d}</DisplayString>
  154. <DisplayString Condition="type == Variant::AABB">{_data._aabb}</DisplayString>
  155. <DisplayString Condition="type == Variant::BASIS">{_data._basis}</DisplayString>
  156. <DisplayString Condition="type == Variant::TRANSFORM3D">{_data._transform3d}</DisplayString>
  157. <DisplayString Condition="type == Variant::PROJECTION">{_data._projection}</DisplayString>
  158. <DisplayString Condition="type == Variant::STRING">{*(String *)_data._mem}</DisplayString>
  159. <DisplayString Condition="type == Variant::VECTOR2">{*(Vector2 *)_data._mem}</DisplayString>
  160. <DisplayString Condition="type == Variant::RECT2">{*(Rect2 *)_data._mem}</DisplayString>
  161. <DisplayString Condition="type == Variant::VECTOR3">{*(Vector3 *)_data._mem}</DisplayString>
  162. <DisplayString Condition="type == Variant::VECTOR4">{*(Vector4 *)_data._mem}</DisplayString>
  163. <DisplayString Condition="type == Variant::PLANE">{*(Plane *)_data._mem}</DisplayString>
  164. <DisplayString Condition="type == Variant::QUATERNION">{*(Quaternion *)_data._mem}</DisplayString>
  165. <DisplayString Condition="type == Variant::COLOR">{*(Color *)_data._mem}</DisplayString>
  166. <DisplayString Condition="type == Variant::STRING_NAME">{*(StringName *)_data._mem}</DisplayString>
  167. <DisplayString Condition="type == Variant::NODE_PATH">{*(NodePath *)_data._mem}</DisplayString>
  168. <DisplayString Condition="type == Variant::RID">{*(::RID *)_data._mem}</DisplayString>
  169. <DisplayString Condition="type == Variant::OBJECT">{*(*reinterpret_cast&lt;ObjData*&gt;(&amp;_data._mem[0])).obj}</DisplayString>
  170. <DisplayString Condition="type == Variant::DICTIONARY">{*(Dictionary *)_data._mem}</DisplayString>
  171. <DisplayString Condition="type == Variant::ARRAY">{*(Array *)_data._mem}</DisplayString>
  172. <DisplayString Condition="type == Variant::PACKED_BYTE_ARRAY">{reinterpret_cast&lt;const Variant::PackedArrayRef&lt;unsigned char&gt;*&gt;(_data.packed_array)->array}</DisplayString>
  173. <DisplayString Condition="type == Variant::PACKED_INT32_ARRAY">{reinterpret_cast&lt;const Variant::PackedArrayRef&lt;int&gt;*&gt;(_data.packed_array)->array}</DisplayString>
  174. <DisplayString Condition="type == Variant::PACKED_INT64_ARRAY">{*reinterpret_cast&lt;PackedInt64Array *&gt;(&amp;_data.packed_array[1])}</DisplayString>
  175. <DisplayString Condition="type == Variant::PACKED_FLOAT32_ARRAY">{reinterpret_cast&lt;const Variant::PackedArrayRef&lt;float&gt;*&gt;(_data.packed_array)->array}</DisplayString>
  176. <DisplayString Condition="type == Variant::PACKED_FLOAT64_ARRAY">{reinterpret_cast&lt;const Variant::PackedArrayRef&lt;double&gt;*&gt;(_data.packed_array)->array}</DisplayString>
  177. <DisplayString Condition="type == Variant::PACKED_STRING_ARRAY">{reinterpret_cast&lt;const Variant::PackedArrayRef&lt;String&gt;*&gt;(_data.packed_array)->array}</DisplayString>
  178. <DisplayString Condition="type == Variant::PACKED_VECTOR2_ARRAY">{reinterpret_cast&lt;const Variant::PackedArrayRef&lt;Vector2&gt;*&gt;(_data.packed_array)->array}</DisplayString>
  179. <DisplayString Condition="type == Variant::PACKED_VECTOR3_ARRAY">{reinterpret_cast&lt;const Variant::PackedArrayRef&lt;Vector3&gt;*&gt;(_data.packed_array)->array}</DisplayString>
  180. <DisplayString Condition="type == Variant::PACKED_COLOR_ARRAY">{reinterpret_cast&lt;const Variant::PackedArrayRef&lt;Color&gt;*&gt;(_data.packed_array)->array}</DisplayString>
  181. <DisplayString Condition="type == Variant::PACKED_VECTOR4_ARRAY">{reinterpret_cast&lt;const Variant::PackedArrayRef&lt;Vector4&gt;*&gt;(_data.packed_array)->array}</DisplayString>
  182. <DisplayString Condition="type &lt; 0 || type >= Variant::VARIANT_MAX">[INVALID]</DisplayString>
  183. <StringView Condition="type == Variant::STRING &amp;&amp; ((String *)(_data._mem))->_cowdata._ptr">((String *)(_data._mem))->_cowdata._ptr,s32</StringView>
  184. <Expand>
  185. <Item Name="[value]" Condition="type == Variant::BOOL">_data._bool</Item>
  186. <Item Name="[value]" Condition="type == Variant::INT">_data._int</Item>
  187. <Item Name="[value]" Condition="type == Variant::FLOAT">_data._float</Item>
  188. <Item Name="[value]" Condition="type == Variant::TRANSFORM2D">_data._transform2d</Item>
  189. <Item Name="[value]" Condition="type == Variant::AABB">_data._aabb</Item>
  190. <Item Name="[value]" Condition="type == Variant::BASIS">_data._basis</Item>
  191. <Item Name="[value]" Condition="type == Variant::TRANSFORM3D">_data._transform3d</Item>
  192. <Item Name="[value]" Condition="type == Variant::STRING">*(String *)_data._mem</Item>
  193. <Item Name="[value]" Condition="type == Variant::VECTOR2">*(Vector2 *)_data._mem</Item>
  194. <Item Name="[value]" Condition="type == Variant::RECT2">*(Rect2 *)_data._mem</Item>
  195. <Item Name="[value]" Condition="type == Variant::VECTOR3">*(Vector3 *)_data._mem</Item>
  196. <Item Name="[value]" Condition="type == Variant::PLANE">*(Plane *)_data._mem</Item>
  197. <Item Name="[value]" Condition="type == Variant::QUATERNION">*(Quaternion *)_data._mem</Item>
  198. <Item Name="[value]" Condition="type == Variant::COLOR">*(Color *)_data._mem</Item>
  199. <Item Name="[value]" Condition="type == Variant::STRING_NAME">*(StringName *)_data._mem</Item>
  200. <Item Name="[value]" Condition="type == Variant::NODE_PATH">*(NodePath *)_data._mem</Item>
  201. <Item Name="[value]" Condition="type == Variant::RID">*(::RID *)_data._mem</Item>
  202. <Item Name="[value]" Condition="type == Variant::OBJECT">*(*reinterpret_cast&lt;ObjData*&gt;(&amp;_data._mem[0])).obj</Item>
  203. <Item Name="[value]" Condition="type == Variant::DICTIONARY">*(Dictionary *)_data._mem</Item>
  204. <Item Name="[value]" Condition="type == Variant::ARRAY">*(Array *)_data._mem</Item>
  205. <Item Name="[value]" Condition="type == Variant::PACKED_BYTE_ARRAY">reinterpret_cast&lt;const Variant::PackedArrayRef&lt;unsigned char&gt;*&gt;(_data.packed_array)->array</Item>
  206. <Item Name="[value]" Condition="type == Variant::PACKED_INT32_ARRAY">reinterpret_cast&lt;const Variant::PackedArrayRef&lt;int&gt;*&gt;(_data.packed_array)->array</Item>
  207. <Item Name="[value]" Condition="type == Variant::PACKED_INT64_ARRAY">*reinterpret_cast&lt;PackedInt64Array *&gt;(&amp;_data.packed_array[1])</Item>
  208. <Item Name="[value]" Condition="type == Variant::PACKED_FLOAT32_ARRAY">reinterpret_cast&lt;const Variant::PackedArrayRef&lt;float&gt;*&gt;(_data.packed_array)->array</Item>
  209. <Item Name="[value]" Condition="type == Variant::PACKED_FLOAT64_ARRAY">reinterpret_cast&lt;const Variant::PackedArrayRef&lt;double&gt;*&gt;(_data.packed_array)->array</Item>
  210. <Item Name="[value]" Condition="type == Variant::PACKED_STRING_ARRAY">reinterpret_cast&lt;const Variant::PackedArrayRef&lt;String&gt;*&gt;(_data.packed_array)->array</Item>
  211. <Item Name="[value]" Condition="type == Variant::PACKED_VECTOR2_ARRAY">reinterpret_cast&lt;const Variant::PackedArrayRef&lt;Vector2&gt;*&gt;(_data.packed_array)->array</Item>
  212. <Item Name="[value]" Condition="type == Variant::PACKED_VECTOR3_ARRAY">reinterpret_cast&lt;const Variant::PackedArrayRef&lt;Vector3&gt;*&gt;(_data.packed_array)->array</Item>
  213. <Item Name="[value]" Condition="type == Variant::PACKED_COLOR_ARRAY">reinterpret_cast&lt;const Variant::PackedArrayRef&lt;Color&gt;*&gt;(_data.packed_array)->array</Item>
  214. <Item Name="[value]" Condition="type == Variant::PACKED_VECTOR4_ARRAY">reinterpret_cast&lt;const Variant::PackedArrayRef&lt;Vector4&gt;*&gt;(_data.packed_array)->array</Item>
  215. </Expand>
  216. </Type>
  217. <Type Name="String">
  218. <DisplayString Condition="_cowdata._ptr == 0">[empty]</DisplayString>
  219. <DisplayString Condition="_cowdata._ptr != 0">{_cowdata._ptr,s32}</DisplayString>
  220. <StringView Condition="_cowdata._ptr != 0">_cowdata._ptr,s32</StringView>
  221. </Type>
  222. <Type Name="godot::String">
  223. <DisplayString>{*reinterpret_cast&lt;void**&gt;(opaque),s32}</DisplayString>
  224. <Expand>
  225. <Item Name="opaque_ptr">*reinterpret_cast&lt;void**&gt;(opaque)</Item>
  226. <Item Name="string">*reinterpret_cast&lt;void**&gt;(opaque),s32</Item>
  227. </Expand>
  228. </Type>
  229. <Type Name="StringName">
  230. <DisplayString Condition="_data &amp;&amp; _data->cname">{_data->cname,na}</DisplayString>
  231. <DisplayString Condition="_data &amp;&amp; !_data->cname">{_data->name,s32}</DisplayString>
  232. <DisplayString Condition="!_data">[empty]</DisplayString>
  233. <StringView Condition="_data &amp;&amp; _data->cname">_data->cname,na</StringView>
  234. <StringView Condition="_data &amp;&amp; !_data->cname">_data->name,s32</StringView>
  235. </Type>
  236. <!-- can't cast the opaque to ::StringName because Natvis does not support global namespace specifier? -->
  237. <Type Name="godot::StringName">
  238. <DisplayString Condition="(*reinterpret_cast&lt;const char***&gt;(opaque))[1]">{(*reinterpret_cast&lt;const char***&gt;(opaque))[1],s8}</DisplayString>
  239. <DisplayString Condition="!(*reinterpret_cast&lt;const char***&gt;(opaque))[1]">{(*reinterpret_cast&lt;const char***&gt;(opaque))[2],s32}</DisplayString>
  240. <Expand>
  241. <Item Name="opaque_ptr">*reinterpret_cast&lt;void**&gt;(opaque)</Item>
  242. <Item Name="&amp;cname">(*reinterpret_cast&lt;const char***&gt;(opaque))+1</Item>
  243. <Item Name="cname">(*reinterpret_cast&lt;const char***&gt;(opaque))[1],s8</Item>
  244. </Expand>
  245. </Type>
  246. <Type Name="Object::SignalData">
  247. <DisplayString Condition="user.name._cowdata._ptr">"{user.name}" {slot_map}</DisplayString>
  248. <DisplayString Condition="!user.name._cowdata._ptr">"{slot_map}</DisplayString>
  249. </Type>
  250. <Type Name="Vector2">
  251. <DisplayString>({x,g}, {y,g})</DisplayString>
  252. <Expand>
  253. <Item Name="[x]">x</Item>
  254. <Item Name="[y]">y</Item>
  255. </Expand>
  256. </Type>
  257. <Type Name="Vector2i">
  258. <DisplayString>({x}, {y})</DisplayString>
  259. <Expand>
  260. <Item Name="[x]">x</Item>
  261. <Item Name="[y]">y</Item>
  262. </Expand>
  263. </Type>
  264. <Type Name="Vector3">
  265. <DisplayString>({x,g}, {y,g}, {z,g})</DisplayString>
  266. <Expand>
  267. <Item Name="[x]">x</Item>
  268. <Item Name="[y]">y</Item>
  269. <Item Name="[z]">z</Item>
  270. </Expand>
  271. </Type>
  272. <Type Name="Vector3i">
  273. <DisplayString>({x}, {y}, {z})</DisplayString>
  274. <Expand>
  275. <Item Name="[x]">x</Item>
  276. <Item Name="[y]">y</Item>
  277. <Item Name="[z]">z</Item>
  278. </Expand>
  279. </Type>
  280. <Type Name="Vector4">
  281. <DisplayString>({x,g}, {y,g}, {z,g}, {w,g})</DisplayString>
  282. <Expand>
  283. <Item Name="[x]">x</Item>
  284. <Item Name="[y]">y</Item>
  285. <Item Name="[z]">z</Item>
  286. <Item Name="[w]">w</Item>
  287. </Expand>
  288. </Type>
  289. <Type Name="Vector4i">
  290. <DisplayString>({x}, {y}, {z}, {w})</DisplayString>
  291. <Expand>
  292. <Item Name="[x]">x</Item>
  293. <Item Name="[y]">y</Item>
  294. <Item Name="[z]">z</Item>
  295. <Item Name="[w]">w</Item>
  296. </Expand>
  297. </Type>
  298. <Type Name="Quaternion">
  299. <DisplayString>({x,g}, {y,g}, {z,g}, {w,g})</DisplayString>
  300. <Expand>
  301. <Item Name="[x]">x</Item>
  302. <Item Name="[y]">y</Item>
  303. <Item Name="[z]">z</Item>
  304. <Item Name="[w]">w</Item>
  305. </Expand>
  306. </Type>
  307. <Type Name="Color">
  308. <DisplayString>({r,g}, {g,g}, {b,g}, {a,g})</DisplayString>
  309. <Expand>
  310. <Item Name="[red]">r</Item>
  311. <Item Name="[green]">g</Item>
  312. <Item Name="[blue]">b</Item>
  313. <Item Name="[alpha]">a</Item>
  314. </Expand>
  315. </Type>
  316. <Type Name="Rect2">
  317. <DisplayString>[P: {position}, S: {size}]</DisplayString>
  318. <Expand>
  319. <Item Name="[position]">position,nr</Item>
  320. <Item Name="[size]">size,nr</Item>
  321. </Expand>
  322. </Type>
  323. <Type Name="Rect2i">
  324. <DisplayString>[P: {position}, S: {size}]</DisplayString>
  325. <Expand>
  326. <Item Name="[position]">position,nr</Item>
  327. <Item Name="[size]">size,nr</Item>
  328. </Expand>
  329. </Type>
  330. <Type Name="AABB">
  331. <DisplayString>[P: {position}, S: {size}]</DisplayString>
  332. <Expand>
  333. <Item Name="[position]">position,nr</Item>
  334. <Item Name="[size]">size,nr</Item>
  335. </Expand>
  336. </Type>
  337. <Type Name="Plane">
  338. <DisplayString>[N: {normal}, D: {d,g}]</DisplayString>
  339. <Expand>
  340. <Item Name="[normal]">normal,nr</Item>
  341. <Item Name="[d]">d</Item>
  342. </Expand>
  343. </Type>
  344. <Type Name="Basis">
  345. <DisplayString>[X: {rows[0]}, Y: {rows[1]}, Z: {rows[2]}]</DisplayString>
  346. <Expand>
  347. <Item Name="[x]">rows[0],nr</Item>
  348. <Item Name="[y]">rows[1],nr</Item>
  349. <Item Name="[z]">rows[2],nr</Item>
  350. </Expand>
  351. </Type>
  352. <Type Name="Transform2D">
  353. <DisplayString>[X: {columns[0]}, Y: {columns[1]}, O: {columns[2]}]</DisplayString>
  354. <Expand>
  355. <Item Name="[x]">columns[0],nr</Item>
  356. <Item Name="[y]">columns[1],nr</Item>
  357. <Item Name="[origin]">columns[2],nr</Item>
  358. </Expand>
  359. </Type>
  360. <Type Name="Transform3D">
  361. <!-- Can't call column functions, so just pretend we can via obscene code duplication. -->
  362. <DisplayString>[X: ({basis.rows[0].x,g}, {basis.rows[1].x,g}, {basis.rows[2].x,g}), Y: ({basis.rows[0].y,g}, {basis.rows[1].y,g}, {basis.rows[2].y,g}), Z: ({basis.rows[0].z,g}, {basis.rows[1].z,g}, {basis.rows[2].z,g}), O: {origin}]</DisplayString>
  363. <Expand>
  364. <Synthetic Name="[x]">
  365. <DisplayString>({basis.rows[0].x,g}, {basis.rows[1].x,g}, {basis.rows[2].x,g})</DisplayString>
  366. <Expand>
  367. <Item Name="[x]">basis.rows[0].x</Item>
  368. <Item Name="[y]">basis.rows[1].x</Item>
  369. <Item Name="[z]">basis.rows[2].x</Item>
  370. </Expand>
  371. </Synthetic>
  372. <Synthetic Name="[y]">
  373. <DisplayString>({basis.rows[0].y,g}, {basis.rows[1].y,g}, {basis.rows[2].y,g})</DisplayString>
  374. <Expand>
  375. <Item Name="[x]">basis.rows[0].y</Item>
  376. <Item Name="[y]">basis.rows[1].y</Item>
  377. <Item Name="[z]">basis.rows[2].y</Item>
  378. </Expand>
  379. </Synthetic>
  380. <Synthetic Name="[z]">
  381. <DisplayString>({basis.rows[0].z,g}, {basis.rows[1].z,g}, {basis.rows[2].z,g})</DisplayString>
  382. <Expand>
  383. <Item Name="[x]">basis.rows[0].z</Item>
  384. <Item Name="[y]">basis.rows[1].z</Item>
  385. <Item Name="[z]">basis.rows[2].z</Item>
  386. </Expand>
  387. </Synthetic>
  388. <Item Name="[origin]">origin,nr</Item>
  389. </Expand>
  390. </Type>
  391. <Type Name="Projection">
  392. <DisplayString>[X: {columns[0]}, Y: {columns[1]}, Z: {columns[2]}, W: {columns[3]}]</DisplayString>
  393. <Expand>
  394. <Item Name="[x]">columns[0],nr</Item>
  395. <Item Name="[y]">columns[1],nr</Item>
  396. <Item Name="[z]">columns[2],nr</Item>
  397. <Item Name="[w]">columns[3],nr</Item>
  398. </Expand>
  399. </Type>
  400. </AutoVisualizer>