diff options
Diffstat (limited to 'source/core/core.natvis')
| -rw-r--r-- | source/core/core.natvis | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/source/core/core.natvis b/source/core/core.natvis index 9d3f52839..2b1e3ff7e 100644 --- a/source/core/core.natvis +++ b/source/core/core.natvis @@ -62,4 +62,45 @@ <ExpandedItem>pointer</ExpandedItem> </Expand> </Type> + + +<Type Name="Slang::Safe32Ptr<*>"> + <Expand> + <ExpandedItem>($T1*)(m_base->m_data + m_offset)</ExpandedItem> + </Expand> +</Type> + +<Type Name="Slang::Relative32Ptr<*>"> + <Expand> + <ExpandedItem>(m_offset == 0x80000000) ? nullptr : ($T1*)(((char*)this) + m_offset)</ExpandedItem> + </Expand> +</Type> + + +<Type Name="Slang::Safe32Array<*>"> + <Expand> + <Item Name="[count]">m_count</Item> + <ArrayItems> + <Size>m_count</Size> + <ValuePointer>($T1*)(m_data.m_base->m_data + m_data.m_offset)</ValuePointer> + </ArrayItems> + </Expand> +</Type> + + +<Type Name="Slang::Relative32Array<*>"> + <Expand> + <Item Name="[count]">m_count</Item> + <ArrayItems> + <Size>m_count</Size> + <ValuePointer>(m_data.m_offset == 0x80000000) ? nullptr : ($T1*)(((char*)&m_data) + m_data.m_offset)</ValuePointer> + </ArrayItems> + </Expand> +</Type> + +<Type Name="Slang::RelativeString"> + <DisplayString>{(m_sizeThenContents + 1),s}</DisplayString> + <StringView>(m_sizeThenContents + 1),s</StringView> +</Type> + </AutoVisualizer> |
