Browse Source

natvis: refine view definition, prepare to drop stuff on the C++ side

Michele Caini 2 years ago
parent
commit
0f9ee0ac03
1 changed files with 17 additions and 4 deletions
  1. 17 4
      natvis/entt/entity.natvis

+ 17 - 4
natvis/entt/entity.natvis

@@ -99,15 +99,28 @@
 			</CustomListItems>
 		</Expand>
 	</Type>
-	<Type Name="entt::basic_view&lt;*&gt;">
-		<DisplayString Condition="leading != nullptr">{{ size_hint={ leading->packed.size() } }}</DisplayString>
+	<Type Name="entt::basic_common_view&lt;*,*,*&gt;">
+		<DisplayString Condition="index != $T2">{{ size_hint={ pools[index]->packed.size() } }}</DisplayString>
 		<DisplayString>{{ size_hint=0 }}</DisplayString>
 		<Expand>
-			<Item Name="[pools]" Optional="true">pools,na</Item>
-			<Item Name="[filter]" Optional="true">filter,na</Item>
+			<Item Name="[pools]">pools,na</Item>
+			<Item Name="[filter]">filter,na</Item>
+			<Item Name="[handle]" Condition="index != $T2">pools[index],na</Item>
+		</Expand>
+	</Type>
+	<Type Name="entt::basic_storage_view&lt;*&gt;">
+		<DisplayString Condition="leading != nullptr">{{ size={ leading->packed.size() } }}</DisplayString>
+		<DisplayString>{{ size=0 }}</DisplayString>
+		<Expand>
 			<Item Name="[handle]" Condition="leading != nullptr">leading,na</Item>
 		</Expand>
 	</Type>
+	<Type Name="entt::basic_view&lt;*&gt;">
+		<DisplayString>{ *(base_type*)this }</DisplayString>
+		<Expand>
+			<ExpandedItem>*(base_type*)this</ExpandedItem>
+		</Expand>
+	</Type>
 	<Type Name="entt::basic_runtime_view&lt;*&gt;">
 		<DisplayString Condition="pools.size() != 0u">{{ size_hint={ pools[0]->packed.size() } }}</DisplayString>
 		<DisplayString>{{ size_hint=0 }}</DisplayString>