-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathnri.natvis
150 lines (150 loc) · 8.91 KB
/
nri.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- search for .natvis in the code -->
<!-- C -->
<Type Name="NriAccelerationStructure">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="NriBuffer">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">*(NriBufferDesc*)((uint8_t*)this + 40)</Item>
</Expand>
</Type>
<Type Name="NriCommandAllocator">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="NriCommandBuffer">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="NriQueue">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="NriDescriptorPool">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">*(NriDescriptorPoolDesc*)((uint8_t*)this + 40)</Item>
</Expand>
</Type>
<Type Name="NriDescriptorSet">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">**(NriDescriptorSetDesc**)((uint8_t*)this + 40)</Item>
</Expand>
</Type>
<Type Name="NriDescriptor">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="NriDevice">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 80)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">*(NriDeviceDesc*)((uint8_t*)this + 88)</Item>
</Expand>
</Type>
<Type Name="NriFence">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="NriMemory">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="NriPipelineLayout">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">*(NriPipelineLayoutDesc*)((uint8_t*)this + 40)</Item>
</Expand>
</Type>
<Type Name="NriPipeline">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="NriQueryPool">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="NriStreamer">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="NriSwapChain">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">*(NriSwapChainDesc*)((uint8_t*)this + 40)</Item>
</Expand>
</Type>
<Type Name="NriTexture">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">*(NriTextureDesc*)((uint8_t*)this + 40)</Item>
</Expand>
</Type>
<!-- C++ -->
<Type Name="nri::AccelerationStructure">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="nri::Buffer">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">*(nri::BufferDesc*)((uint8_t*)this + 40)</Item>
</Expand>
</Type>
<Type Name="nri::CommandAllocator">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="nri::CommandBuffer">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="nri::Queue">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="nri::DescriptorPool">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">*(nri::DescriptorPoolDesc*)((uint8_t*)this + 40)</Item>
</Expand>
</Type>
<Type Name="nri::DescriptorSet">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">**(nri::DescriptorSetDesc**)((uint8_t*)this + 40)</Item>
</Expand>
</Type>
<Type Name="nri::Descriptor">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="nri::Device">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 80)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">*(NriDeviceDesc*)((uint8_t*)this + 88)</Item>
</Expand>
</Type>
<Type Name="nri::Fence">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="nri::Memory">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="nri::PipelineLayout">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">*(nri::PipelineLayoutDesc*)((uint8_t*)this + 40)</Item>
</Expand>
</Type>
<Type Name="nri::Pipeline">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="nri::QueryPool">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="nri::Streamer">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
</Type>
<Type Name="nri::SwapChain">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">*(nri::SwapChainDesc*)((uint8_t*)this + 40)</Item>
</Expand>
</Type>
<Type Name="nri::Texture">
<DisplayString Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">{{ name = {*(char**)((uint8_t*)this + 16)} }}</DisplayString>
<Expand>
<Item Name="desc" Condition = "((uint64_t*)this)[1] == 0x1234567887654321ull">*(nri::TextureDesc*)((uint8_t*)this + 40)</Item>
</Expand>
</Type>
</AutoVisualizer>