glm.natvis 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- GLM visualizers for Visual Studio -->
  3. <!-- Copy this file to -->
  4. <!-- %USERPROFILE%\Douments\Visual Studio 2019\Visualizers\ (replace '2019' when necessary) -->
  5. <!-- or -->
  6. <!-- %VSINSTALLDIR%\Common7\Packages\Debugger\Visualizers\ (requires admin access) -->
  7. <!-- See also https://docs.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-native-objects -->
  8. <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
  9. <Type Name="glm::vec&lt;1,*&gt;">
  10. <DisplayString>{x}</DisplayString>
  11. <Expand>
  12. <Item Name="x">x</Item>
  13. </Expand>
  14. </Type>
  15. <Type Name="glm::vec&lt;2,*&gt;">
  16. <DisplayString>{x}, {y}</DisplayString>
  17. <Expand>
  18. <Item Name="x">x</Item>
  19. <Item Name="y">y</Item>
  20. </Expand>
  21. </Type>
  22. <Type Name="glm::vec&lt;3,*&gt;">
  23. <DisplayString>{x}, {y}, {z}</DisplayString>
  24. <Expand>
  25. <Item Name="x">x</Item>
  26. <Item Name="y">y</Item>
  27. <Item Name="z">z</Item>
  28. </Expand>
  29. </Type>
  30. <Type Name="glm::vec&lt;4,*&gt;">
  31. <DisplayString>{x}, {y}, {z}, {w}</DisplayString>
  32. <Expand>
  33. <Item Name="x">x</Item>
  34. <Item Name="y">y</Item>
  35. <Item Name="z">z</Item>
  36. <Item Name="w">w</Item>
  37. </Expand>
  38. </Type>
  39. <Type Name="glm::qua&lt;*&gt;">
  40. <DisplayString>{x}, {y}, {z}, {w}</DisplayString>
  41. <Expand>
  42. <Item Name="x">x</Item>
  43. <Item Name="y">y</Item>
  44. <Item Name="z">z</Item>
  45. <Item Name="w">w</Item>
  46. </Expand>
  47. </Type>
  48. <Type Name="glm::tdualquat&lt;*&gt;">
  49. <DisplayString>(({real.x}, {real.y}, {real.z}), {real.w}), (({dual.x}, {dual.y}, {dual.z}), {dual.w})</DisplayString>
  50. <Expand>
  51. <Item Name="real">real</Item>
  52. <Item Name="dual">dual</Item>
  53. </Expand>
  54. </Type>
  55. </AutoVisualizer>