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">
|
<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">
|
<Type Name="tint::Symbol">
|
||||||
<!-- Requires TINT_SYMBOL_STORE_DEBUG_NAME defined to 1 -->
|
<!-- Requires TINT_SYMBOL_STORE_DEBUG_NAME defined to 1 -->
|
||||||
<DisplayString Optional="true">{debug_name_,sb}</DisplayString>
|
<DisplayString Optional="true">{debug_name_,sb}</DisplayString>
|
||||||
|
|
Loading…
Reference in New Issue