https://github.com/shader-slang/slang
Raw File
Tip revision: 16613ed981fc5dc38966f5108e85b1aee36ef92f authored by Tim Foley on 28 June 2017, 19:17:47 UTC
Merge pull request #50 from tfoleyNV/literal-fix-fix
Tip revision: 16613ed
core.natvis
<?xml version="1.0" encoding="utf-8"?>

<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">

<Type Name="Slang::String">
    <DisplayString>{buffer.pointer,s}</DisplayString>
	<StringView>buffer.pointer,s</StringView>
</Type>

<Type Name="Slang::ArrayView&lt;*&gt;">
  <DisplayString>{{ size={_count} }}</DisplayString>
  <Expand>
    <Item Name="[size]">_count</Item>
    <ArrayItems>
      <Size>_count</Size>
      <ValuePointer>_buffer</ValuePointer>
    </ArrayItems>
  </Expand>
</Type>

<Type Name="Slang::List&lt;*&gt;">
    <DisplayString>{{ size={_count} }}</DisplayString>
    <Expand>
        <Item Name="[size]">_count</Item>
        <Item Name="[capacity]">bufferSize</Item>
        <ArrayItems>
            <Size>_count</Size>
            <ValuePointer>buffer</ValuePointer>
        </ArrayItems>
    </Expand>
</Type>


<Type Name="Slang::Array&lt;*,*&gt;">
  <DisplayString>{{ size={_count} }}</DisplayString>
  <Expand>
    <Item Name="[size]">_count</Item>
    <ArrayItems>
      <Size>_count</Size>
      <ValuePointer>_buffer</ValuePointer>
    </ArrayItems>
  </Expand>
</Type>
  
<Type Name="Slang::Dictionary&lt;*,*&gt;">
    <DisplayString>{{ size={_count} }}</DisplayString>
    <Expand>
        <Item Name="[size]">_count</Item>
        <Item Name="[capacity]">bucketSizeMinusOne + 1</Item>
        <ArrayItems>
           <Size>bucketSizeMinusOne + 1</Size>
           <ValuePointer>hashMap</ValuePointer>
        </ArrayItems>
    </Expand>
</Type>

<Type Name="Slang::RefPtrImpl&lt;*,*,*&gt;">
    <SmartPointer Usage="Minimal">pointer</SmartPointer>
    <DisplayString Condition="pointer == 0">empty</DisplayString>
    <DisplayString Condition="pointer != 0">RefPtr {*pointer}</DisplayString>
    <Expand>
      <ExpandedItem>pointer</ExpandedItem>
    </Expand>
</Type>
</AutoVisualizer>
back to top