-
Notifications
You must be signed in to change notification settings - Fork 0
/
replay.natvis
70 lines (70 loc) · 2.32 KB
/
replay.natvis
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="replay::index_map<*>">
<DisplayString>{{ size={size_} }}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">size_</Item>
<Item Name="[capacity]" ExcludeView="simple">capacity_</Item>
<CustomListItems MaxItemsPerView="5000" ExcludeView="simple">
<Variable Name="index" InitialValue="0"/>
<Variable Name="valid" InitialValue="true"/>
<Size>size_</Size>
<Loop>
<Break Condition="index == capacity_"/>
<Exec>valid = mask_[index/bits_per_mask]&(1<<(index%bits_per_mask))</Exec>
<If Condition="valid">
<Item Name="{index}">buffer_[index],na</Item>
</If>
<Exec>index++</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>
<Type Name="replay::table<*>">
<DisplayString>{{ size={m_width} x {m_height} }}</DisplayString>
<Expand>
<Item Name="[width]" ExcludeView="simple" >m_width</Item>
<Item Name="[height]" ExcludeView="simple" >m_height</Item>
<ArrayItems>
<Size>m_width*m_height</Size>
<ValuePointer>m_buffer</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="replay::byte_rgba">
<DisplayString>{{ r:{(int)data[0]} g:{(int)data[1]} b:{(int)data[2]} a:{(int)data[3]} }}</DisplayString>
<Expand>
<ArrayItems>
<Size>4</Size>
<ValuePointer>data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="replay::vector2<*>">
<DisplayString>{{{data[0]}, {data[1]}}}</DisplayString>
<Expand>
<ArrayItems>
<Size>2</Size>
<ValuePointer>data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="replay::vector3<*>">
<DisplayString>{{{data[0]}, {data[1]}, {data[2]}}}</DisplayString>
<Expand>
<ArrayItems>
<Size>3</Size>
<ValuePointer>data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="replay::vector4<*>">
<DisplayString>{{{data[0]}, {data[1]}, {data[2]}, {data[3]}}}</DisplayString>
<Expand>
<ArrayItems>
<Size>4</Size>
<ValuePointer>data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
</AutoVisualizer>