124 lines
5.2 KiB
XML
124 lines
5.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
|
<Type Name="entt::basic_registry<*>">
|
|
<Intrinsic Name="to_entity" Expression="*((traits_type::entity_type *)&entity) & traits_type::entity_mask">
|
|
<Parameter Name="entity" Type="traits_type::value_type &"/>
|
|
</Intrinsic>
|
|
<DisplayString>{{ pools={ pools.size() } }}</DisplayString>
|
|
<Expand>
|
|
<Item Name="[entities]">entities</Item>
|
|
<Synthetic Name="[pools]">
|
|
<DisplayString>{ pools.size() }</DisplayString>
|
|
<Expand>
|
|
<IndexListItems ExcludeView="simple">
|
|
<Size>pools.size()</Size>
|
|
<ValueNode>*pools.packed.first_base::value[$i].element.second</ValueNode>
|
|
</IndexListItems>
|
|
<IndexListItems IncludeView="simple">
|
|
<Size>pools.size()</Size>
|
|
<ValueNode>*pools.packed.first_base::value[$i].element.second,view(simple)</ValueNode>
|
|
</IndexListItems>
|
|
</Expand>
|
|
</Synthetic>
|
|
<Item Name="[groups]" ExcludeView="simple">groups.size()</Item>
|
|
<Synthetic Name="[vars]">
|
|
<DisplayString>{ vars.ctx.size() }</DisplayString>
|
|
<Expand>
|
|
<IndexListItems>
|
|
<Size>vars.ctx.size()</Size>
|
|
<ValueNode>vars.ctx.packed.first_base::value[$i].element.second</ValueNode>
|
|
</IndexListItems>
|
|
</Expand>
|
|
</Synthetic>
|
|
</Expand>
|
|
</Type>
|
|
<Type Name="entt::basic_sparse_set<*>">
|
|
<DisplayString>{{ size={ packed.size() }, type={ info->alias,na } }}</DisplayString>
|
|
<Expand>
|
|
<Item Name="[capacity]" ExcludeView="simple">packed.capacity()</Item>
|
|
<Item Name="[policy]">mode,en</Item>
|
|
<Synthetic Name="[sparse]">
|
|
<DisplayString>{ sparse.size() * traits_type::page_size }</DisplayString>
|
|
<Expand>
|
|
<ExpandedItem IncludeView="simple">sparse,view(simple)</ExpandedItem>
|
|
<CustomListItems ExcludeView="simple">
|
|
<Variable Name="pos" InitialValue="0"/>
|
|
<Variable Name="page" InitialValue="0"/>
|
|
<Variable Name="offset" InitialValue="0"/>
|
|
<Variable Name="last" InitialValue="sparse.size() * traits_type::page_size"/>
|
|
<Loop>
|
|
<Break Condition="pos == last"/>
|
|
<Exec>page = pos / traits_type::page_size</Exec>
|
|
<Exec>offset = pos & (traits_type::page_size - 1)</Exec>
|
|
<If Condition="sparse[page] && (*((traits_type::entity_type *)&sparse[page][offset]) < ~traits_type::entity_mask)">
|
|
<Item Name="[{ pos }]">*((traits_type::entity_type *)&sparse[page][offset]) & traits_type::entity_mask</Item>
|
|
</If>
|
|
<Exec>++pos</Exec>
|
|
</Loop>
|
|
</CustomListItems>
|
|
</Expand>
|
|
</Synthetic>
|
|
<Synthetic Name="[packed]">
|
|
<DisplayString>{ packed.size() }</DisplayString>
|
|
<Expand>
|
|
<ExpandedItem IncludeView="simple">packed,view(simple)</ExpandedItem>
|
|
<CustomListItems ExcludeView="simple">
|
|
<Variable Name="pos" InitialValue="0"/>
|
|
<Variable Name="last" InitialValue="packed.size()"/>
|
|
<Loop>
|
|
<Break Condition="pos == last"/>
|
|
<If Condition="*((traits_type::entity_type *)&packed[pos]) < ~traits_type::entity_mask">
|
|
<Item Name="[{ pos }]">packed[pos]</Item>
|
|
</If>
|
|
<Exec>++pos</Exec>
|
|
</Loop>
|
|
</CustomListItems>
|
|
</Expand>
|
|
</Synthetic>
|
|
</Expand>
|
|
</Type>
|
|
<Type Name="entt::basic_storage<*>">
|
|
<DisplayString>{{ size={ base_type::packed.size() }, type={ base_type::info->alias,na } }}</DisplayString>
|
|
<Expand>
|
|
<Item Name="[capacity]" Optional="true" ExcludeView="simple">payload.capacity() * traits_type::page_size</Item>
|
|
<Item Name="[page size]" Optional="true" ExcludeView="simple">traits_type::page_size</Item>
|
|
<Item Name="[length]" Optional="true" ExcludeView="simple">length</Item>
|
|
<Item Name="[base]" ExcludeView="simple">(base_type*)this,nand</Item>
|
|
<Item Name="[base]" IncludeView="simple">(base_type*)this,view(simple)nand</Item>
|
|
<!-- having SFINAE-like techniques in natvis is priceless :) -->
|
|
<CustomListItems Condition="payload.size() != 0" Optional="true">
|
|
<Variable Name="pos" InitialValue="0" />
|
|
<Variable Name="last" InitialValue="base_type::packed.size()"/>
|
|
<Loop>
|
|
<Break Condition="pos == last"/>
|
|
<If Condition="*((base_type::traits_type::entity_type *)&base_type::packed[pos]) < ~base_type::traits_type::entity_mask">
|
|
<Item Name="[{ pos }:{ base_type::packed[pos] }]">payload[pos / traits_type::page_size][pos & (traits_type::page_size - 1)]</Item>
|
|
</If>
|
|
<Exec>++pos</Exec>
|
|
</Loop>
|
|
</CustomListItems>
|
|
</Expand>
|
|
</Type>
|
|
<Type Name="entt::basic_view<*>">
|
|
<DisplayString>{{ size_hint={ view->packed.size() } }}</DisplayString>
|
|
<Expand>
|
|
<Item Name="[pools]">pools,na</Item>
|
|
<Item Name="[filter]">filter,na</Item>
|
|
</Expand>
|
|
</Type>
|
|
<Type Name="entt::basic_runtime_view<*>">
|
|
<DisplayString Condition="pools.size() != 0u">{{ size_hint={ pools[0]->packed.size() } }}</DisplayString>
|
|
<DisplayString>{{ size_hint=0 }}</DisplayString>
|
|
<Expand>
|
|
<Item Name="[pools]">pools,na</Item>
|
|
<Item Name="[filter]">filter,na</Item>
|
|
</Expand>
|
|
</Type>
|
|
<Type Name="entt::null_t">
|
|
<DisplayString><null></DisplayString>
|
|
</Type>
|
|
<Type Name="entt::tombstone_t">
|
|
<DisplayString><tombstone></DisplayString>
|
|
</Type>
|
|
</AutoVisualizer>
|