mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +00:00
Improved NATVIS file - added support for VmaIntrusiveLinkedList usage
This commit is contained in:
parent
7df5ecf6e2
commit
d3067c3620
@ -1,40 +1,71 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||||
<Type Name="VmaRawList<*>">
|
<Type Name="VmaRawList<*>">
|
||||||
<DisplayString>{{ Count={m_Count} }}</DisplayString>
|
<DisplayString>{{ Count={m_Count} }}</DisplayString>
|
||||||
<Expand>
|
<Expand>
|
||||||
<Item Name="[Count]">m_Count</Item>
|
<Item Name="[Count]">m_Count</Item>
|
||||||
<LinkedListItems>
|
<LinkedListItems>
|
||||||
<Size>m_Count</Size>
|
<Size>m_Count</Size>
|
||||||
<HeadPointer>m_pFront</HeadPointer>
|
<HeadPointer>m_pFront</HeadPointer>
|
||||||
<NextPointer>pNext</NextPointer>
|
<NextPointer>pNext</NextPointer>
|
||||||
<ValueNode>Value</ValueNode>
|
<ValueNode>Value</ValueNode>
|
||||||
</LinkedListItems>
|
</LinkedListItems>
|
||||||
</Expand>
|
</Expand>
|
||||||
</Type>
|
</Type>
|
||||||
|
|
||||||
<Type Name="VmaList<*>">
|
<Type Name="VmaList<*>">
|
||||||
<DisplayString>{{ Count={m_RawList.m_Count} }}</DisplayString>
|
<DisplayString>{{ Count={m_RawList.m_Count} }}</DisplayString>
|
||||||
<Expand>
|
<Expand>
|
||||||
<Item Name="[Count]">m_RawList.m_Count</Item>
|
<Item Name="[Count]">m_RawList.m_Count</Item>
|
||||||
<LinkedListItems>
|
<LinkedListItems>
|
||||||
<Size>m_RawList.m_Count</Size>
|
<Size>m_RawList.m_Count</Size>
|
||||||
<HeadPointer>m_RawList.m_pFront</HeadPointer>
|
<HeadPointer>m_RawList.m_pFront</HeadPointer>
|
||||||
<NextPointer>pNext</NextPointer>
|
<NextPointer>pNext</NextPointer>
|
||||||
<ValueNode>Value</ValueNode>
|
<ValueNode>Value</ValueNode>
|
||||||
</LinkedListItems>
|
</LinkedListItems>
|
||||||
</Expand>
|
</Expand>
|
||||||
</Type>
|
</Type>
|
||||||
|
|
||||||
<Type Name="VmaVector<*>">
|
<Type Name="VmaVector<*>">
|
||||||
<DisplayString>{{ Count={m_Count} }}</DisplayString>
|
<DisplayString>{{ Count={m_Count} }}</DisplayString>
|
||||||
<Expand>
|
<Expand>
|
||||||
<Item Name="[Count]">m_Count</Item>
|
<Item Name="[Count]">m_Count</Item>
|
||||||
<Item Name="[Capacity]">m_Capacity</Item>
|
<Item Name="[Capacity]">m_Capacity</Item>
|
||||||
<ArrayItems>
|
<ArrayItems>
|
||||||
<Size>m_Count</Size>
|
<Size>m_Count</Size>
|
||||||
<ValuePointer>m_pArray</ValuePointer>
|
<ValuePointer>m_pArray</ValuePointer>
|
||||||
</ArrayItems>
|
</ArrayItems>
|
||||||
</Expand>
|
</Expand>
|
||||||
</Type>
|
</Type>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Due to custom way of accesing next items in
|
||||||
|
VmaIntrusiveLinkedList via methods in provided type traits,
|
||||||
|
every specialization must be manually added with
|
||||||
|
custom <NextPointer> field describing proper way of iterating the list.
|
||||||
|
-->
|
||||||
|
<Type Name="VmaIntrusiveLinkedList<VmaDedicatedAllocationListItemTraits>">
|
||||||
|
<DisplayString>{{ Count={m_Count} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[Count]">m_Count</Item>
|
||||||
|
<LinkedListItems>
|
||||||
|
<Size>m_Count</Size>
|
||||||
|
<HeadPointer>m_Front</HeadPointer>
|
||||||
|
<NextPointer>m_DedicatedAllocation.m_Next</NextPointer>
|
||||||
|
<ValueNode>*this</ValueNode>
|
||||||
|
</LinkedListItems>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
<Type Name="VmaIntrusiveLinkedList<VmaPoolListItemTraits>">
|
||||||
|
<DisplayString>{{ Count={m_Count} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[Count]">m_Count</Item>
|
||||||
|
<LinkedListItems>
|
||||||
|
<Size>m_Count</Size>
|
||||||
|
<HeadPointer>m_Front</HeadPointer>
|
||||||
|
<NextPointer>m_NextPool</NextPointer>
|
||||||
|
<ValueNode>*this</ValueNode>
|
||||||
|
</LinkedListItems>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
</AutoVisualizer>
|
</AutoVisualizer>
|
Loading…
Reference in New Issue
Block a user