Parcourir la source

natvis: print both the index and the entity for the storage representation

Michele Caini il y a 3 ans
Parent
commit
46e601db6e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      natvis/entt/entity.natvis

+ 1 - 1
natvis/entt/entity.natvis

@@ -122,7 +122,7 @@
 				<Loop>
 					<Break Condition="pos == last"/>
 					<If Condition="*((base_type::entity_traits::entity_type *)&amp;base_type::packed[pos]) &lt; ~base_type::entity_traits::entity_mask">
-						<Item Name="[{ base_type::packed[pos] }]">packed.first_base::value[pos / comp_traits::page_size][pos &amp; (comp_traits::page_size - 1)]</Item>
+						<Item Name="[{ pos }:{ base_type::packed[pos] }]">packed.first_base::value[pos / comp_traits::page_size][pos &amp; (comp_traits::page_size - 1)]</Item>
 					</If>
 					<Exec>++pos</Exec>
 				</Loop>