D3D12MemAlloc.natvis 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
  3. <Type Name="D3D12MA::Vector&lt;*&gt;">
  4. <DisplayString>{{ Count={m_Count} }}</DisplayString>
  5. <Expand>
  6. <Item Name="[Count]">m_Count</Item>
  7. <Item Name="[Capacity]">m_Capacity</Item>
  8. <ArrayItems>
  9. <Size>m_Count</Size>
  10. <ValuePointer>m_pArray</ValuePointer>
  11. </ArrayItems>
  12. </Expand>
  13. </Type>
  14. <Type Name="D3D12MA::List&lt;*&gt;">
  15. <DisplayString>{{ Count={m_Count} }}</DisplayString>
  16. <Expand>
  17. <Item Name="[Count]">m_Count</Item>
  18. <LinkedListItems>
  19. <Size>m_Count</Size>
  20. <HeadPointer>m_pFront</HeadPointer>
  21. <NextPointer>pNext</NextPointer>
  22. <ValueNode>Value</ValueNode>
  23. </LinkedListItems>
  24. </Expand>
  25. </Type>
  26. <!--
  27. Due to custom way of accesing next items in
  28. D3D12MA::IntrusiveLinkedList via methods in provided type traits,
  29. every specialization must be manually added with
  30. custom <NextPointer> field describing proper way of iterating the list.
  31. -->
  32. <Type Name="D3D12MA::IntrusiveLinkedList&lt;D3D12MA::CommittedAllocationListItemTraits&gt;">
  33. <DisplayString>{{ Count={m_Count} }}</DisplayString>
  34. <Expand>
  35. <Item Name="[Count]">m_Count</Item>
  36. <LinkedListItems>
  37. <Size>m_Count</Size>
  38. <HeadPointer>m_Front</HeadPointer>
  39. <NextPointer>m_Committed.next</NextPointer>
  40. <ValueNode>*this</ValueNode>
  41. </LinkedListItems>
  42. </Expand>
  43. </Type>
  44. <Type Name="D3D12MA::IntrusiveLinkedList&lt;D3D12MA::PoolListItemTraits&gt;">
  45. <DisplayString>{{ Count={m_Count} }}</DisplayString>
  46. <Expand>
  47. <Item Name="[Count]">m_Count</Item>
  48. <LinkedListItems>
  49. <Size>m_Count</Size>
  50. <HeadPointer>m_Front</HeadPointer>
  51. <NextPointer>m_NextPool</NextPointer>
  52. <ValueNode>*this</ValueNode>
  53. </LinkedListItems>
  54. </Expand>
  55. </Type>
  56. </AutoVisualizer>