Michele Caini 3 лет назад
Родитель
Сommit
73b6ef2293
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      natvis/entt/resource.natvis

+ 12 - 0
natvis/entt/resource.natvis

@@ -1,3 +1,15 @@
 <?xml version="1.0" encoding="utf-8"?>
 <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
+	<Type Name="entt::resource&lt;*&gt;">
+		<DisplayString>{ value }</DisplayString>
+		<Expand>
+			<ExpandedItem>value</ExpandedItem>
+		</Expand>
+	</Type>
+	<Type Name="entt::resource_cache&lt;*&gt;">
+		<DisplayString>{ pool.first_base::value }</DisplayString>
+		<Expand>
+			<ExpandedItem>pool.first_base::value</ExpandedItem>
+		</Expand>
+	</Type>
 </AutoVisualizer>