tint: natvis: add utils::Slice, utils::Vector, and utils::VectorRef
Bug: tint:1331 Change-Id: I710c3f390234160d1c21a04f71bd26eb56ff585a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/99140 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
parent
cdb5397283
commit
cc937971c9
|
@ -16,6 +16,34 @@
|
|||
-->
|
||||
|
||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||
<Type Name="tint::utils::Slice<*>">
|
||||
<DisplayString>{{ length={len}, capacity={cap} }}</DisplayString>
|
||||
<Expand>
|
||||
<!--<Item Name="[length]">len</Item>
|
||||
<Item Name="[capacity]">cap</Item>-->
|
||||
<ArrayItems>
|
||||
<Size>len</Size>
|
||||
<ValuePointer>data</ValuePointer>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="tint::utils::Vector<*,*>">
|
||||
<Expand>
|
||||
<Item Name="[heap]">impl_.slice.cap > (int)$T2</Item>
|
||||
<ExpandedItem>impl_.slice</ExpandedItem>
|
||||
<!--<Item Name="[slice]">impl_.slice</Item>-->
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="tint::utils::VectorRef<*>">
|
||||
<Expand>
|
||||
<Item Name="[can move]">can_move_</Item>
|
||||
<ExpandedItem>slice_</ExpandedItem>
|
||||
<!--<Item Name="[slice]">slice_</Item>-->
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="tint::Symbol">
|
||||
<!-- Requires TINT_SYMBOL_STORE_DEBUG_NAME defined to 1 -->
|
||||
<DisplayString Optional="true">{debug_name_,sb}</DisplayString>
|
||||
|
@ -63,7 +91,7 @@
|
|||
</Type>
|
||||
|
||||
<Type Name="tint::ast::IdentifierExpression">
|
||||
<!--the ",sb" specifier removes the double quotes on the displayed string -->
|
||||
<!--the ",sb" specifier removes the double quotes on the displayed string -->
|
||||
<DisplayString>{symbol}</DisplayString>
|
||||
<Expand>
|
||||
<Item Name="symbol">symbol</Item>
|
||||
|
|
Loading…
Reference in New Issue