Skip to content

Commit

Permalink
Add Natvis file with debug information for VectorView and SmallVector.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBanana committed Oct 9, 2023
1 parent 37fee00 commit 9969e02
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions spirv_cross.natvis
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="spirv_cross::VectorView&lt;*,*&gt;" Inheritable="false">
<DisplayString>{{size = {buffer_size}}}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">buffer_size</Item>
<ArrayItems>
<Size>buffer_size</Size>
<ValuePointer Condition="ptr != 0">ptr</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="spirv_cross::SmallVector&lt;*,*&gt;" Inheritable="false">
<DisplayString>{{size = {buffer_size}}}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">buffer_size</Item>
<ArrayItems>
<Size>buffer_size</Size>
<ValuePointer Condition="ptr != 0">ptr</ValuePointer>
</ArrayItems>
</Expand>
</Type>
</AutoVisualizer>

0 comments on commit 9969e02

Please sign in to comment.