-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathutil.natvis
32 lines (32 loc) · 1.06 KB
/
util.natvis
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="util::vector<*,*>">
<!-- note: "na" specifier to hide the address only seems to work on pointers, not arrays -->
<DisplayString>{($T1*)data,[$T2]na}</DisplayString>
<Expand>
<ArrayItems>
<Size>$T2</Size>
<ValuePointer>data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="util::matrix<*,*,*>">
<!-- note: "na" specifier to hide the address only seems to work on pointers, not arrays -->
<DisplayString>{($T1*)data,[$T2*$T3]na}</DisplayString>
<Expand>
<IndexListItems>
<Size>$T2</Size>
<ValueNode>&data[$i*$T3],[$T3]na</ValueNode>
</IndexListItems>
</Expand>
</Type>
<Type Name="util::quat">
<DisplayString>{{{w}, {x}, {y}, {z}}}</DisplayString>
<Expand>
<Item Name="w">w</Item>
<Item Name="x">x</Item>
<Item Name="y">y</Item>
<Item Name="z">z</Item>
</Expand>
</Type>
</AutoVisualizer>