Added features to the .natvis file

I've been using this natvis file in some personal projects that use GLM and I've found it to be very helpful when debugging GLM code.

vectors are displayed in the debugger like this:

glm::vec4 v(1, 2, 3, 4); // [1 2 3 4]

when expanding the view, the debugger will show each individual component, as well as the length of the vector, and hex RGBA code (for float vectors only), like this:

glm::vec4 v(0.5); // [0.5 0.5 0.5 0.5]

[len]   1
[rgba] #7F7F7F7F
x         0.5
y         0.5
z         0.5
w        0.5

Matrices are displayed in row major order when expanded in the debugger like this:

glm::mat4 m = glm::translate(glm::mat4(1), glm::vec3(1, 2, 3));
// [1 0 0 0] [0 1 0 0] [0 0 1 0] [1 2 3 1]

row 1   [1 0 0 1]
row 2   [0 1 0 2]
row 3   [0 0 1 3]
row 4   [0 0 0 1]
columns
  - col 1    [1 0 0 0]
  - col 2    [0 1 0 0]
  - col 3    [0 0 1 0]
  - col 4    [1 2 3 1]

Quaternions are displayed as: w + xi + yj + zk

glm::quat q(1, 2, 3, 4); // 1 + 2i + 3j + 4k

Dual quaternions are displayed as:

glm::dualquat dq(q, q); // [r: 1 + 2i + 3j + 4k] [d: 1 + 2i + 3j + 4k]
This commit is contained in:
blat-blatnik 2020-04-17 00:35:24 +02:00 committed by GitHub
parent bf71a83494
commit 2cc2c3ae6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,65 +1,555 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- GLM visualizers for Visual Studio --> <!--
<!-- Copy this file to --> GLM debugger visualizers for Visual Studio
<!-- %USERPROFILE%\Douments\Visual Studio 2019\Visualizers\ (replace '2019' when necessary) -->
<!-- or --> Makes debugging code using GLM easier by making data more easily accessible
<!-- %VSINSTALLDIR%\Common7\Packages\Debugger\Visualizers\ (requires admin access) --> from the debugger watch windows.
<!-- See also https://docs.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-native-objects -->
For example, a variable declared like this:
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
glm::vec4 v = glm::vec4(1, 2, 3, 4);
<Type Name="glm::vec&lt;1,*&gt;">
<DisplayString>{x}</DisplayString> Will show up like this in the default debugger windows:
<Expand>
<Item Name="x">x</Item> Name Value
</Expand> ..............................................................
</Type> v {x=1.000000 r=1.000000 s=1.000000 y=2.000000 ...}
<Type Name="glm::vec&lt;2,*&gt;"> But if you use this file, it will show up like this:
<DisplayString>{x}, {y}</DisplayString>
<Expand> Name Value
<Item Name="x">x</Item> ..................
<Item Name="y">y</Item> v [1 2 3 4]
</Expand>
</Type> === How to Use ===
<Type Name="glm::vec&lt;3,*&gt;"> Copy this file to the project directory of each project using GLM, or just copy it to
<DisplayString>{x}, {y}, {z}</DisplayString>
<Expand> %USERPROFILE%\Douments\Visual Studio 2019\Visualizers\ (replace '2019' when necessary)
<Item Name="x">x</Item> or
<Item Name="y">y</Item> %VSINSTALLDIR%\Common7\Packages\Debugger\Visualizers\ (requires admin access)
<Item Name="z">z</Item>
</Expand> if you want to use this from every project.
</Type> See also https://docs.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-native-objects
-->
<Type Name="glm::vec&lt;4,*&gt;">
<DisplayString>{x}, {y}, {z}, {w}</DisplayString> <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Expand>
<Item Name="x">x</Item> <Type Name="glm::vec&lt;1,*,*&gt;">
<Item Name="y">y</Item> <DisplayString>[{x,g}]</DisplayString>
<Item Name="z">z</Item> <Expand HideRawView="1">
<Item Name="w">w</Item> <Item Name="x">x,g</Item>
</Expand> </Expand>
</Type> </Type>
<Type Name="glm::qua&lt;*&gt;"> <Type Name="glm::vec&lt;2,*,*&gt;">
<DisplayString>{x}, {y}, {z}, {w}</DisplayString> <DisplayString>[{x,g} {y,g}]</DisplayString>
<Expand> <Expand HideRawView="1">
<Item Name="x">x</Item> <Item Name="x">x,g</Item>
<Item Name="y">y</Item> <Item Name="y">y,g</Item>
<Item Name="z">z</Item> </Expand>
<Item Name="w">w</Item> </Type>
</Expand>
</Type> <Type Name="glm::vec&lt;3,*,*&gt;">
<DisplayString>[{x,g} {y,g} {z,g}]</DisplayString>
<Type Name="glm::tdualquat&lt;*&gt;"> <Expand HideRawView="1">
<DisplayString>(({real.x}, {real.y}, {real.z}), {real.w}), (({dual.x}, {dual.y}, {dual.z}), {dual.w})</DisplayString> <Item Name="x">x,g</Item>
<Expand> <Item Name="y">y,g</Item>
<Item Name="real">real</Item> <Item Name="z">z,g</Item>
<Item Name="dual">dual</Item> </Expand>
</Expand> </Type>
</Type>
<Type Name="glm::vec&lt;4,*,*&gt;">
</AutoVisualizer> <DisplayString>[{x,g} {y,g} {z,g} {w,g}]</DisplayString>
<Expand HideRawView="1">
<Item Name="x">x,g</Item>
<Item Name="y">y,g</Item>
<Item Name="z">z,g</Item>
<Item Name="w">w,g</Item>
</Expand>
</Type>
<Type Name="glm::vec&lt;1,bool,*&gt;" Priority="High">
<DisplayString>[{(int)x}]</DisplayString>
<Expand HideRawView="1">
<Item Name="x">x</Item>
</Expand>
</Type>
<Type Name="glm::vec&lt;2,bool,*&gt;" Priority="High">
<DisplayString>[{(int)x} {(int)y}]</DisplayString>
<Expand HideRawView="1">
<Item Name="x">x</Item>
<Item Name="y">y</Item>
</Expand>
</Type>
<Type Name="glm::vec&lt;3,bool,*&gt;" Priority="High">
<DisplayString>[{(int)x,g} {(int)y,g} {(int)z,g}]</DisplayString>
<Expand HideRawView="1">
<Item Name="x">x</Item>
<Item Name="y">y</Item>
<Item Name="z">z</Item>
</Expand>
</Type>
<Type Name="glm::vec&lt;4,bool,*&gt;" Priority="High">
<DisplayString>[{(int)x,g} {(int)y,g} {(int)z,g} {(int)w,g}]</DisplayString>
<Expand HideRawView="1">
<Item Name="x">x</Item>
<Item Name="y">y</Item>
<Item Name="z">z</Item>
<Item Name="w">w</Item>
</Expand>
</Type>
<Type Name="glm::vec&lt;2,float,*&gt;" Priority="High">
<DisplayString>[{x,g} {y,g}]</DisplayString>
<Expand HideRawView="1">
<CustomListItems MaxItemsPerView="1">
<!-- calculate length using fast inverse sqrt -->
<Variable Name="k" InitialValue="x*x+y*y"/>
<Variable Name="n" InitialValue="k/2"/>
<Variable Name="i" InitialValue="0x5F3759DF - ((*(int *)&amp;k) &gt;&gt; 1)"/>
<If Condition="k != 0">
<Exec>k = *(float *)&amp;i</Exec>
<Exec>k = k * (1.5f - (n * k * k))</Exec>
<Exec>k = k * (1.5f - (n * k * k))</Exec>
<Exec>k = k * (1.5f - (n * k * k))</Exec>
<Item Name="[len]">1/k,g</Item>
</If>
<If Condition="k == 0">
<Item Name="[len]">0.0f,g</Item>
</If>
</CustomListItems>
<Item Name="x">x,g</Item>
<Item Name="y">y,g</Item>
</Expand>
</Type>
<Type Name="glm::vec&lt;3,float,*&gt;" Priority="High">
<DisplayString>[{x,g} {y,g} {z,g}]</DisplayString>
<Expand HideRawView="1">
<CustomListItems MaxItemsPerView="1">
<!-- calculate length using fast inverse sqrt -->
<Variable Name="k" InitialValue="x*x+y*y+z*z"/>
<Variable Name="n" InitialValue="k/2"/>
<Variable Name="i" InitialValue="0x5F3759DF - ((*(int *)&amp;k) &gt;&gt; 1)"/>
<If Condition="k != 0">
<Exec>k = *(float *)&amp;i</Exec>
<Exec>k = k * (1.5f - (n * k * k))</Exec>
<Exec>k = k * (1.5f - (n * k * k))</Exec>
<Exec>k = k * (1.5f - (n * k * k))</Exec>
<Item Name="[len]">1/k,g</Item>
</If>
<If Condition="k == 0">
<Item Name="[len]">0.0f,g</Item>
</If>
</CustomListItems>
<Synthetic Name="[rgba]">
<DisplayString>
<!-- hex RGBA color - alpha is assumed to be 255 -->
#{
(unsigned((x&lt;0?0:(x&gt;1?1:x))*255.5f) &lt;&lt; 24) |
(unsigned((y&lt;0?0:(y&gt;1?1:y))*255.5f) &lt;&lt; 16) |
(unsigned((z&lt;0?0:(z&gt;1?1:z))*255.5f) &lt;&lt; 8) | 0xFF,Xb
}
</DisplayString>
</Synthetic>
<Item Name="x">x,g</Item>
<Item Name="y">y,g</Item>
<Item Name="z">z,g</Item>
</Expand>
</Type>
<Type Name="glm::vec&lt;4,float,*&gt;" Priority="High">
<DisplayString>[{x,g} {y,g} {z,g} {w,g}]</DisplayString>
<Expand HideRawView="1">
<CustomListItems MaxItemsPerView="1">
<!-- calculate length using fast inverse sqrt -->
<Variable Name="k" InitialValue="x*x+y*y+z*z+w*w"/>
<Variable Name="n" InitialValue="k/2"/>
<Variable Name="i" InitialValue="0x5F3759DF - ((*(int *)&amp;k) &gt;&gt; 1)"/>
<If Condition="k != 0">
<Exec>k = *(float *)&amp;i</Exec>
<Exec>k = k * (1.5f - (n * k * k))</Exec>
<Exec>k = k * (1.5f - (n * k * k))</Exec>
<Exec>k = k * (1.5f - (n * k * k))</Exec>
<Item Name="[len]">1/k,g</Item>
</If>
<If Condition="k == 0">
<Item Name="[len]">0.0f,g</Item>
</If>
</CustomListItems>
<Synthetic Name="[rgba]">
<DisplayString>
<!-- hex RGBA color -->
#{
(unsigned((x&lt;0?0:(x&gt;1?1:x))*255.5f) &lt;&lt; 24) |
(unsigned((y&lt;0?0:(y&gt;1?1:y))*255.5f) &lt;&lt; 16) |
(unsigned((z&lt;0?0:(z&gt;1?1:z))*255.5f) &lt;&lt; 8) |
(unsigned((w&lt;0?0:(w&gt;1?1:w))*255.5f) &lt;&lt; 0),Xb
}
</DisplayString>
</Synthetic>
<Item Name="x">x,g</Item>
<Item Name="y">y,g</Item>
<Item Name="z">z,g</Item>
<Item Name="w">w,g</Item>
</Expand>
</Type>
<Type Name="glm::vec&lt;2,double,*&gt;" Priority="High">
<DisplayString>[{x,g} {y,g}]</DisplayString>
<Expand HideRawView="1">
<CustomListItems MaxItemsPerView="1">
<!-- calculate length using fast inverse sqrt -->
<Variable Name="k" InitialValue="x*x+y*y"/>
<Variable Name="n" InitialValue="k/2"/>
<Variable Name="i" InitialValue="0x5FE6EB50C7B537A9 - ((*(long long *)&amp;k) &gt;&gt; 1)"/>
<If Condition="k != 0">
<Exec>k = *(double *)&amp;i</Exec>
<Exec>k = k * (1.5 - (n * k * k))</Exec>
<Exec>k = k * (1.5 - (n * k * k))</Exec>
<Exec>k = k * (1.5 - (n * k * k))</Exec>
<Item Name="[len]">1/k,g</Item>
</If>
<If Condition="k == 0">
<Item Name="[len]">0.0,g</Item>
</If>
</CustomListItems>
<Item Name="x">x,g</Item>
<Item Name="y">y,g</Item>
</Expand>
</Type>
<Type Name="glm::vec&lt;3,double,*&gt;" Priority="High">
<DisplayString>[{x,g} {y,g} {z,g}]</DisplayString>
<Expand HideRawView="1">
<CustomListItems MaxItemsPerView="1">
<!-- calculate length using fast inverse sqrt -->
<Variable Name="k" InitialValue="x*x+y*y+z*z"/>
<Variable Name="n" InitialValue="k/2"/>
<Variable Name="i" InitialValue="0x5FE6EB50C7B537A9 - ((*(long long *)&amp;k) &gt;&gt; 1)"/>
<If Condition="k != 0">
<Exec>k = *(double *)&amp;i</Exec>
<Exec>k = k * (1.5 - (n * k * k))</Exec>
<Exec>k = k * (1.5 - (n * k * k))</Exec>
<Exec>k = k * (1.5 - (n * k * k))</Exec>
<Item Name="[len]">1/k,g</Item>
</If>
<If Condition="k == 0">
<Item Name="[len]">0.0,g</Item>
</If>
</CustomListItems>
<Item Name="x">x,g</Item>
<Item Name="y">y,g</Item>
<Item Name="z">z,g</Item>
</Expand>
</Type>
<Type Name="glm::vec&lt;4,double,*&gt;" Priority="High">
<DisplayString>[{x,g} {y,g} {z,g} {w,g}]</DisplayString>
<Expand HideRawView="1">
<CustomListItems MaxItemsPerView="1">
<!-- calculate length using fast inverse sqrt -->
<Variable Name="k" InitialValue="x*x+y*y+z*z+w*w"/>
<Variable Name="n" InitialValue="k/2"/>
<Variable Name="i" InitialValue="0x5FE6EB50C7B537A9 - ((*(long long *)&amp;k) &gt;&gt; 1)"/>
<If Condition="k != 0">
<Exec>k = *(double *)&amp;i</Exec>
<Exec>k = k * (1.5 - (n * k * k))</Exec>
<Exec>k = k * (1.5 - (n * k * k))</Exec>
<Exec>k = k * (1.5 - (n * k * k))</Exec>
<Item Name="[len]">1/k,g</Item>
</If>
<If Condition="k == 0">
<Item Name="[len]">0.0,g</Item>
</If>
</CustomListItems>
<Item Name="x">x,g</Item>
<Item Name="y">y,g</Item>
<Item Name="z">z,g</Item>
<Item Name="w">w,g</Item>
</Expand>
</Type>
<Type Name="glm::qua&lt;*,*&gt;">
<DisplayString>{w,g} + {x,g}i + {y,g}j + {z,g}k</DisplayString>
<Expand HideRawView="1">
<Item Name="x">x,g</Item>
<Item Name="y">y,g</Item>
<Item Name="z">z,g</Item>
<Item Name="w">w,g</Item>
</Expand>
</Type>
<Type Name="glm::qua&lt;float,*&gt;" Priority="High">
<DisplayString>{w,g} + {x,g}i + {y,g}j + {z,g}k</DisplayString>
<Expand HideRawView="1">
<CustomListItems MaxItemsPerView="1">
<!-- calculate length using fast inverse sqrt -->
<Variable Name="k" InitialValue="x*x+y*y+z*z+w*w"/>
<Variable Name="n" InitialValue="k/2"/>
<Variable Name="i" InitialValue="0x5F3759DF - ((*(int *)&amp;k) &gt;&gt; 1)"/>
<If Condition="k != 0">
<Exec>k = *(float *)&amp;i</Exec>
<Exec>k = k * (1.5f - (n * k * k))</Exec>
<Exec>k = k * (1.5f - (n * k * k))</Exec>
<Exec>k = k * (1.5f - (n * k * k))</Exec>
<Item Name="[len]">1/k,g</Item>
</If>
<If Condition="k == 0">
<Item Name="[len]">0.0f,g</Item>
</If>
</CustomListItems>
<Item Name="x">x,g</Item>
<Item Name="y">y,g</Item>
<Item Name="z">z,g</Item>
<Item Name="w">w,g</Item>
</Expand>
</Type>
<Type Name="glm::qua&lt;double,*&gt;" Priority="High">
<DisplayString>{w,g} + {x,g}i + {y,g}j + {z,g}k</DisplayString>
<Expand HideRawView="1">
<CustomListItems MaxItemsPerView="1">
<!-- calculate length using fast inverse sqrt -->
<Variable Name="k" InitialValue="x*x+y*y+z*z+w*w"/>
<Variable Name="n" InitialValue="k/2"/>
<Variable Name="i" InitialValue="0x5FE6EB50C7B537A9 - ((*(long long *)&amp;k) &gt;&gt; 1)"/>
<If Condition="k != 0">
<Exec>k = *(double *)&amp;i</Exec>
<Exec>k = k * (1.5 - (n * k * k))</Exec>
<Exec>k = k * (1.5 - (n * k * k))</Exec>
<Exec>k = k * (1.5 - (n * k * k))</Exec>
<Item Name="[len]">1/k,g</Item>
</If>
<If Condition="k == 0">
<Item Name="[len]">0.0,g</Item>
</If>
</CustomListItems>
<Item Name="x">x,g</Item>
<Item Name="y">y,g</Item>
<Item Name="z">z,g</Item>
<Item Name="w">w,g</Item>
</Expand>
</Type>
<Type Name="glm::mat&lt;2,2,*,*&gt;">
<DisplayString>[{value[0]} {value[1]}]</DisplayString>
<Expand HideRawView="1">
<!-- display matrix in row major order - it makes more sense -->
<Synthetic Name="row 1">
<DisplayString>[{value[0].x,g} {value[1].x,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 2">
<DisplayString>[{value[0].y,g} {value[1].y,g}]</DisplayString>
</Synthetic>
<Synthetic Name="columns">
<Expand>
<Item Name="col 1">value[0]</Item>
<Item Name="col 2">value[1]</Item>
</Expand>
</Synthetic>
</Expand>
</Type>
<Type Name="glm::mat&lt;2,3,*,*&gt;">
<DisplayString>[{value[0]} {value[1]}]</DisplayString>
<Expand HideRawView="1">
<!-- display matrix in row major order - it makes more sense -->
<Synthetic Name="row 1">
<DisplayString>[{value[0].x,g} {value[1].x,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 2">
<DisplayString>[{value[0].y,g} {value[1].y,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 3">
<DisplayString>[{value[0].z,g} {value[1].z,g}]</DisplayString>
</Synthetic>
<Synthetic Name="columns">
<Expand>
<Item Name="col 1">value[0]</Item>
<Item Name="col 2">value[1]</Item>
</Expand>
</Synthetic>
</Expand>
</Type>
<Type Name="glm::mat&lt;2,4,*,*&gt;">
<DisplayString>[{value[0]} {value[1]}]</DisplayString>
<Expand HideRawView="1">
<!-- display matrix in row major order - it makes more sense -->
<Synthetic Name="row 1">
<DisplayString>[{value[0].x,g} {value[1].x,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 2">
<DisplayString>[{value[0].y,g} {value[1].y,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 3">
<DisplayString>[{value[0].z,g} {value[1].z,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 4">
<DisplayString>[{value[0].w,g} {value[1].w,g}]</DisplayString>
</Synthetic>
<Synthetic Name="columns">
<Expand>
<Item Name="col 1">value[0]</Item>
<Item Name="col 2">value[1]</Item>
</Expand>
</Synthetic>
</Expand>
</Type>
<Type Name="glm::mat&lt;3,2*,*&gt;">
<DisplayString>[{value[0]} {value[1]} {value[2]}]</DisplayString>
<Expand HideRawView="1">
<!-- display matrix in row major order - it makes more sense -->
<Synthetic Name="row 1">
<DisplayString>[{value[0].x,g} {value[1].x,g} {value[2].x,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 2">
<DisplayString>[{value[0].y,g} {value[1].y,g} {value[2].y,g}]</DisplayString>
</Synthetic>
<Synthetic Name="columns">
<Expand>
<Item Name="col 1">value[0]</Item>
<Item Name="col 2">value[1]</Item>
<Item Name="col 3">value[2]</Item>
</Expand>
</Synthetic>
</Expand>
</Type>
<Type Name="glm::mat&lt;3,3,*,*&gt;">
<DisplayString>[{value[0]} {value[1]} {value[2]}]</DisplayString>
<Expand HideRawView="1">
<!-- display matrix in row major order - it makes more sense -->
<Synthetic Name="row 1">
<DisplayString>[{value[0].x,g} {value[1].x,g} {value[2].x,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 2">
<DisplayString>[{value[0].y,g} {value[1].y,g} {value[2].y,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 3">
<DisplayString>[{value[0].z,g} {value[1].z,g} {value[2].z,g}]</DisplayString>
</Synthetic>
<Synthetic Name="columns">
<Expand>
<Item Name="col 1">value[0]</Item>
<Item Name="col 2">value[1]</Item>
<Item Name="col 3">value[2]</Item>
</Expand>
</Synthetic>
</Expand>
</Type>
<Type Name="glm::mat&lt;3,4,*,*&gt;">
<DisplayString>[{value[0]} {value[1]} {value[2]}]</DisplayString>
<Expand HideRawView="1">
<!-- display matrix in row major order - it makes more sense -->
<Synthetic Name="row 1">
<DisplayString>[{value[0].x,g} {value[1].x,g} {value[2].x,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 2">
<DisplayString>[{value[0].y,g} {value[1].y,g} {value[2].y,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 3">
<DisplayString>[{value[0].z,g} {value[1].z,g} {value[2].z,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 4">
<DisplayString>[{value[0].w,g} {value[1].w,g} {value[2].w,g}]</DisplayString>
</Synthetic>
<Synthetic Name="columns">
<Expand>
<Item Name="col 1">value[0]</Item>
<Item Name="col 2">value[1]</Item>
<Item Name="col 3">value[2]</Item>
</Expand>
</Synthetic>
</Expand>
</Type>
<Type Name="glm::mat4x2&lt;4,2,*,*&gt;">
<DisplayString>[{value[0]} {value[1]} {value[2]} {value[3]}]</DisplayString>
<Expand HideRawView="1">
<!-- display matrix in row major order - it makes more sense -->
<Synthetic Name="row 1">
<DisplayString>[{value[0].x,g} {value[1].x,g} {value[2].x,g} {value[3].x,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 2">
<DisplayString>[{value[0].y,g} {value[1].y,g} {value[2].y,g} {value[3].y,g}]</DisplayString>
</Synthetic>
<Synthetic Name="columns">
<Expand>
<Item Name="col 1">value[0]</Item>
<Item Name="col 2">value[1]</Item>
<Item Name="col 3">value[2]</Item>
<Item Name="col 4">value[3]</Item>
</Expand>
</Synthetic>
</Expand>
</Type>
<Type Name="glm::mat4x3&lt;4,3,*,*&gt;">
<DisplayString>[{value[0]} {value[1]} {value[2]} {value[3]}]</DisplayString>
<Expand HideRawView="1">
<!-- display matrix in row major order - it makes more sense -->
<Synthetic Name="row 1">
<DisplayString>[{value[0].x,g} {value[1].x,g} {value[2].x,g} {value[3].x,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 2">
<DisplayString>[{value[0].y,g} {value[1].y,g} {value[2].y,g} {value[3].y,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 3">
<DisplayString>[{value[0].z,g} {value[1].z,g} {value[2].z,g} {value[3].z,g}]</DisplayString>
</Synthetic>
<Synthetic Name="columns">
<Expand>
<Item Name="col 1">value[0]</Item>
<Item Name="col 2">value[1]</Item>
<Item Name="col 3">value[2]</Item>
<Item Name="col 4">value[3]</Item>
</Expand>
</Synthetic>
</Expand>
</Type>
<Type Name="glm::mat&lt;4,4,*,*&gt;">
<DisplayString>[{value[0]} {value[1]} {value[2]} {value[3]}]</DisplayString>
<Expand HideRawView="1">
<!-- display matrix in row major order - it makes more sense -->
<Synthetic Name="row 1">
<DisplayString>[{value[0].x,g} {value[1].x,g} {value[2].x,g} {value[3].x,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 2">
<DisplayString>[{value[0].y,g} {value[1].y,g} {value[2].y,g} {value[3].y,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 3">
<DisplayString>[{value[0].z,g} {value[1].z,g} {value[2].z,g} {value[3].z,g}]</DisplayString>
</Synthetic>
<Synthetic Name="row 4">
<DisplayString>[{value[0].w,g} {value[1].w,g} {value[2].w,g} {value[3].w,g}]</DisplayString>
</Synthetic>
<Synthetic Name="columns">
<Expand>
<Item Name="col 1">value[0]</Item>
<Item Name="col 2">value[1]</Item>
<Item Name="col 3">value[2]</Item>
<Item Name="col 4">value[3]</Item>
</Expand>
</Synthetic>
</Expand>
</Type>
<Type Name="glm::tdualquat&lt;*&gt;">
<DisplayString>[r: {real}] [d: {dual}]</DisplayString>
<Expand HideRawView="1">
<Item Name="real">real</Item>
<Item Name="dual">dual</Item>
</Expand>
</Type>
</AutoVisualizer>