| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!-- |
| 3 |
Copyright 2022 Dolphin Emulator Project |
| 4 |
SPDX-License-Identifier: GPL-2.0-or-later |
| 5 |
--> |
| 6 |
|
| 7 |
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> |
| 8 |
<Type Name="Common::EnumMap<*,*,*>"> |
| 9 |
<Expand> |
| 10 |
<!-- The following would work, except ValueNode for IndexListItems doesn't support the Name attribute. |
| 11 |
It's only allowed for LinkedListItems and TreeItems, for some reason. So we get to reimplement it with CustomListItems. --> |
| 12 |
<!-- |
| 13 |
<IndexListItems> |
| 14 |
<Size>$T2 + 1</Size> |
| 15 |
<ValueNode Name="[{($T3)$i}]">m_array[$i]</ValueNode> |
| 16 |
</IndexListItems> |
| 17 |
--> |
| 18 |
<CustomListItems MaxItemsPerView="5000"> |
| 19 |
<Variable Name="i" InitialValue="0" /> |
| 20 |
<!-- Size is incremented by 1 since the template argument is the last member (inclusive), but we want the count (exclusive) --> |
| 21 |
<Size>$T2 + 1</Size> |
| 22 |
<Loop> |
| 23 |
<Break Condition="i > $T2" /> |
| 24 |
<Item Name="[{($T3)i}]">m_array[i]</Item> |
| 25 |
<Exec>i++</Exec> |
| 26 |
</Loop> |
| 27 |
</CustomListItems> |
| 28 |
</Expand> |
| 29 |
</Type> |
| 30 |
</AutoVisualizer> |