forked from polymonster/maths
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay.natvis
45 lines (45 loc) · 1.7 KB
/
display.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
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="Vec<2,*>">
<DisplayString>{{{v[0]}, {v[1]}}}</DisplayString>
<Expand></Expand>
</Type>
<Type Name="Vec<3,*>">
<DisplayString>{{{v[0]}, {v[1]}, {v[2]}}}</DisplayString>
<Expand></Expand>
</Type>
<Type Name="Vec<4,*>">
<DisplayString>{{{v[0]}, {v[1]}, {v[2]}, {v[3]}}}</DisplayString>
<Expand></Expand>
</Type>
<Type Name="vec4f">
<DisplayString>{{{v[0]}, {v[1]}, {v[2]}, {v[3]}}}</DisplayString>
<Expand></Expand>
</Type>
<Type Name="vec3f">
<DisplayString>{{{v[0]}, {v[1]}, {v[2]}}}</DisplayString>
<Expand></Expand>
</Type>
<Type Name="vec2f">
<DisplayString>{{{v[0]}, {v[1]}}}</DisplayString>
<Expand></Expand>
</Type>
<Type Name="vec4d">
<DisplayString>{{{v[0]}, {v[1]}, {v[2]}, {v[3]}}}</DisplayString>
<Expand></Expand>
</Type>
<Type Name="vec3d">
<DisplayString>{{{v[0]}, {v[1]}, {v[2]}}}</DisplayString>
<Expand></Expand>
</Type>
<Type Name="vec2d">
<DisplayString>{{{v[0]}, {v[1]}}}</DisplayString>
<Expand></Expand>
</Type>
<Type Name="Swizzle<*,*,*,*,*,*>">
<DisplayString Condition="$T2 == 1">{{ {v[$T3]} }}</DisplayString>
<DisplayString Condition="$T2 == 2">{{ {v[$T3]}, {v[$T4]} }}</DisplayString>
<DisplayString Condition="$T2 == 3">{{ {v[$T3]}, {v[$T4]}, {v[$T5]} }}</DisplayString>
<DisplayString Condition="$T2 == 4">{{ {v[$T3]}, {v[$T4]}, {v[$T5]}, {v[$T6]} }}</DisplayString>
</Type>
</AutoVisualizer>